mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Merge pull request #41829 from RandomShaper/fix_40353
Avoid warning about harmless unfulfilled yields
This commit is contained in:
		
						commit
						39ea52f36f
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -1044,8 +1044,10 @@ GDScript::~GDScript() { | |||
| 		MutexLock lock(GDScriptLanguage::get_singleton()->lock); | ||||
| 
 | ||||
| 		while (SelfList<GDScriptFunctionState> *E = pending_func_states.first()) { | ||||
| 			E->self()->_clear_stack(); | ||||
| 			// Order matters since clearing the stack may already cause
 | ||||
| 			// the GDSCriptFunctionState to be destroyed and thus removed from the list.
 | ||||
| 			pending_func_states.remove(E); | ||||
| 			E->self()->_clear_stack(); | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
|  | @ -1451,8 +1453,10 @@ GDScriptInstance::~GDScriptInstance() { | |||
| 	MutexLock lock(GDScriptLanguage::get_singleton()->lock); | ||||
| 
 | ||||
| 	while (SelfList<GDScriptFunctionState> *E = pending_func_states.first()) { | ||||
| 		E->self()->_clear_stack(); | ||||
| 		// Order matters since clearing the stack may already cause
 | ||||
| 		// the GDSCriptFunctionState to be destroyed and thus removed from the list.
 | ||||
| 		pending_func_states.remove(E); | ||||
| 		E->self()->_clear_stack(); | ||||
| 	} | ||||
| 
 | ||||
| 	if (script.is_valid() && owner) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rémi Verschelde
						Rémi Verschelde