summaryrefslogtreecommitdiffstats
path: root/src/crsm.hpp
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2017-01-26 19:32:06 +0100
committerMarkus Mittendrein <git@maxmitti.tk>2017-01-26 19:32:06 +0100
commitf81bec7022991fed7f78ee2bbb857460fce9072d (patch)
tree03d169d59fd4ca1cd1cae304015cf79d847dea8b /src/crsm.hpp
parent7a94ec0604979f829c60bef9039bd3b6dba82562 (diff)
downloadmanager-f81bec7022991fed7f78ee2bbb857460fce9072d.tar.gz
manager-f81bec7022991fed7f78ee2bbb857460fce9072d.zip
Add watchdog to avoid endless hanging rounds
Diffstat (limited to 'src/crsm.hpp')
-rw-r--r--src/crsm.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crsm.hpp b/src/crsm.hpp
index 45c4aea..bac0584 100644
--- a/src/crsm.hpp
+++ b/src/crsm.hpp
@@ -146,6 +146,8 @@ private slots:
void enableAutoHosting();
void afkAdminTimeout();
+ void watchdog();
+
private:
CRSMConfig Config;
@@ -234,6 +236,8 @@ private:
QMap<QTcpSocket*, ManagementConnection> managementConnections;
QTimer gameRegisterFailTimer;
QTimer afkAdminTimer;
+ QTimer watchDogTimer;
+ QString watchDogString;
bool ok = false;
bool hostingIsErrorDeactivated = false;
@@ -291,6 +295,8 @@ private:
void out(const QString& text);
void replayOutputBuffer(QTcpSocket *socket, bool clear = true);
+ void announceInfo(const QString& info);
+
bool scenAllowed(const ScenarioSettings& scen, const ClientInfo& client, UserType userType);
void kick(const QString& pcName, const QString& reason = "");