mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-01 01:18:38 +08:00 
			
		
		
		
	Prevent multiple completions
This commit is contained in:
		 Renan
					Renan
				
			
				
					committed by
					
						 Erick (CptBlackPixel)
						Erick (CptBlackPixel)
					
				
			
			
				
	
			
			
			 Erick (CptBlackPixel)
						Erick (CptBlackPixel)
					
				
			
						parent
						
							033e561d4c
						
					
				
				
					commit
					85b8d89adc
				
			| @ -100,7 +100,7 @@ class Util { | ||||
|       if (window.physicalSize.isEmpty) { | ||||
|         final completer = Completer<Size>(); | ||||
|         window.onMetricsChanged = () { | ||||
|           if (!window.physicalSize.isEmpty) { | ||||
|           if (!window.physicalSize.isEmpty && !completer.isCompleted) { | ||||
|             completer.complete(window.physicalSize / window.devicePixelRatio); | ||||
|           } | ||||
|         }; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user