summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-03-19 16:51:41 +0100
committerGitHub <noreply@github.com>2020-03-19 16:51:41 +0100
commit10dd73c8685469c877f5d6a16668bf273cd2ce79 (patch)
tree3a9d8b5e4a17ff236c2a307c637efa9651d81adb /editor
parent6407b60fbf6c2cf308905273512b778b0b721da0 (diff)
parent76fd073f58ffda4df032ca111db663e96ac0a7fb (diff)
Merge pull request #37159 from ThakeeNathees/f8-stop-process-crash-fix
Fix editor crash when stopping game with F8.
Diffstat (limited to 'editor')
-rw-r--r--editor/debugger/script_editor_debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/debugger/script_editor_debugger.cpp b/editor/debugger/script_editor_debugger.cpp
index d7c0c3d2bf..dcb1611f71 100644
--- a/editor/debugger/script_editor_debugger.cpp
+++ b/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) {