Skip to content
Snippets Groups Projects
Commit aa3be831 authored by mcmlxxix's avatar mcmlxxix
Browse files

dont attempt to delete games that have already been deleted, eh?

parent 35c86aac
Branches
Tags
No related merge requests found
...@@ -1594,6 +1594,9 @@ function GameStatusInfo() ...@@ -1594,6 +1594,9 @@ function GameStatusInfo()
} }
for(var completed in this.completed) { for(var completed in this.completed) {
var gm=this.completed[completed]; var gm=this.completed[completed];
/* skip games that have already been deleted */
if(!this.gameData[gm])
continue;
var daysOld=(time()-this.gameData[gm].lastModified)/daySeconds; var daysOld=(time()-this.gameData[gm].lastModified)/daySeconds;
if(this.gameData[gm].singlePlayer===true || daysOld>=settings.keepGameData) { if(this.gameData[gm].singlePlayer===true || daysOld>=settings.keepGameData) {
file_remove(this.gameData[gm].fileName); file_remove(this.gameData[gm].fileName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment