Disable timeout when the server has crashed

This commit is contained in:
Guillaume Meunier
2024-11-01 15:09:16 +01:00
parent 15191ba971
commit 3a9e37f61d
+2
View File
@@ -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)