@@ -170,7 +170,7 @@ class UpdateSubState extends FlxSubState
170170 var bestName : String = null ;
171171 var bestVer : Array <Int > = versionToArray (Globals .APP_VERSION_STR );
172172 var re = ~/ href="(STLGameLauncher-Setup-v([\d _] + )\. exe)"/ ig ;
173- while (re .match (html ))
173+ if (re .match (html ))
174174 {
175175 final name = re .matched (1 );
176176 final verStr = re .matched (2 );
@@ -406,10 +406,10 @@ class UpdateSubState extends FlxSubState
406406 {
407407 append (' [ERROR] Failed to delete ' + file + ' : ' + Std .string (e ));
408408 }
409- // [TEMP DEBUG] Commented out async event pumping for troubleshooting
410- // haxe.Timer.delay(next, 10);
411- next ();
412- return ;
409+ // [TEMP DEBUG] Commented out async event pumping for troubleshooting
410+ // haxe.Timer.delay(next, 10);
411+ next ();
412+ return ;
413413 }
414414 if (i - toDelete .length < toDownload .length )
415415 {
@@ -462,16 +462,16 @@ class UpdateSubState extends FlxSubState
462462 }
463463 }
464464 i ++ ;
465- // [TEMP DEBUG] Commented out async event pumping for troubleshooting
466- // haxe.Timer.delay(next, 10);
467- next ();
465+ // [TEMP DEBUG] Commented out async event pumping for troubleshooting
466+ // haxe.Timer.delay(next, 10);
467+ next ();
468468 }, function (err : String )
469469 {
470470 append (' [ERROR] Failed to download ' + url + ' : ' + err );
471471 i ++ ;
472- // [TEMP DEBUG] Commented out async event pumping for troubleshooting
473- // haxe.Timer.delay(next, 10);
474- next ();
472+ // [TEMP DEBUG] Commented out async event pumping for troubleshooting
473+ // haxe.Timer.delay(next, 10);
474+ next ();
475475 });
476476 return ;
477477 }
0 commit comments