Disable timeout when the server has crashed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user