Prevent double dispatch of preload complete log message
This commit is contained in:
@@ -50,6 +50,7 @@ class Preloader #if flash extends Sprite #end {
|
||||
private var libraryNames:Array<String>;
|
||||
private var loadedLibraries:Int;
|
||||
private var loadedStage:Bool;
|
||||
private var preloadComplete:Bool;
|
||||
private var preloadStarted:Bool;
|
||||
private var simulateProgress:Bool;
|
||||
|
||||
@@ -341,7 +342,13 @@ class Preloader #if flash extends Sprite #end {
|
||||
|
||||
if (!simulateProgress && #if flash loadedStage && #end loadedLibraries == (libraries.length + libraryNames.length)) {
|
||||
|
||||
Log.verbose ("Preload complete");
|
||||
if (!preloadComplete) {
|
||||
|
||||
preloadComplete = true;
|
||||
|
||||
Log.verbose ("Preload complete");
|
||||
|
||||
}
|
||||
|
||||
start ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user