From 3a9e37f61d7cf42b2584642046e18cc437e5701c Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Fri, 1 Nov 2024 15:09:16 +0100 Subject: [PATCH] Disable timeout when the server has crashed --- dashboard/main_window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dashboard/main_window.cpp b/dashboard/main_window.cpp index a5983332..eeb0abc2 100644 --- a/dashboard/main_window.cpp +++ b/dashboard/main_window.cpp @@ -531,6 +531,7 @@ void main_window::on_steam_command_changed(QString value) void main_window::on_server_finished(int exit_code, QProcess::ExitStatus status) { qDebug() << "Server exited with code" << exit_code << ", status" << status; + server_process_timeout->stop(); disconnect(server_process, &QProcess::finished, this, &main_window::on_server_finished); disconnect(server_process, &QProcess::errorOccurred, this, &main_window::on_server_error_occurred); @@ -571,6 +572,7 @@ void main_window::on_server_finished(int exit_code, QProcess::ExitStatus status) void main_window::on_server_error_occurred(QProcess::ProcessError error) { qDebug() << "on_server_error_occurred" << error; + server_process_timeout->stop(); QString error_message; switch (error)