summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-21 22:47:21 +0200
committerGitHub <noreply@github.com>2018-08-21 22:47:21 +0200
commit4bf15d809013c6c70af20632f181b5ca0e75e47c (patch)
tree51502d749dac35cd39468577bc77a241a6aad5cf /editor
parent0a8ac1a57c00db32464b7ea30dd9fd6404936948 (diff)
parentca1c851dbdc14701695d9589225b44d5681606f0 (diff)
Merge pull request #21236 from dragmz/windows-graceful-close
Try closing gracefully before terminating process
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_run.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_run.cpp b/editor/editor_run.cpp
index 749cf6aa2b..072bd948e1 100644
--- a/editor/editor_run.cpp
+++ b/editor/editor_run.cpp
@@ -181,8 +181,8 @@ Error EditorRun::run(const String &p_scene, const String p_custom_args, const Li
void EditorRun::stop() {
if (status != STATUS_STOP && pid != 0) {
-
- OS::get_singleton()->kill(pid);
+ const int max_wait_msec = GLOBAL_DEF("editor/stop_max_wait_msec", 10000);
+ OS::get_singleton()->kill(pid, max_wait_msec);
}
status = STATUS_STOP;