Browse Source

Merge pull request #37159 from ThakeeNathees/f8-stop-process-crash-fix

Fix editor crash when stopping game with F8.
Fabio Alessandrelli 5 years ago
parent
commit
10dd73c868
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/debugger/script_editor_debugger.cpp

+ 1 - 1
editor/debugger/script_editor_debugger.cpp

@@ -810,7 +810,7 @@ void ScriptEditorDebugger::_notification(int p_what) {
 
 			const uint64_t until = OS::get_singleton()->get_ticks_msec() + 20;
 
-			while (peer->has_message()) {
+			while (peer.is_valid() && peer->has_message()) {
 
 				Array arr = peer->get_message();
 				if (arr.size() != 2 || arr[0].get_type() != Variant::STRING || arr[1].get_type() != Variant::ARRAY) {