From 00a8804ab8cc0bfd7b67a3c947f5d0de0eb958dc Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Thu, 29 Oct 2015 15:29:08 +0100 Subject: Add 5 minute hosting timeout on a failure while registering a game at the masterserver --- src/crsm.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/crsm.hpp') diff --git a/src/crsm.hpp b/src/crsm.hpp index 7c3c34f..18a3b7c 100644 --- a/src/crsm.hpp +++ b/src/crsm.hpp @@ -17,6 +17,7 @@ #include #include #include +#include #include "CmdFunctionRef.hpp" #include "ProcessManager.hpp" @@ -136,6 +137,7 @@ private slots: void updateNextAutoScens(); void reconnectIrc(); + void enableAutoHosting(); private: CRSMConfig Config; @@ -221,8 +223,10 @@ private: ProcessManager* processManager = nullptr; QTcpServer managementServer; QMap managementConnections; + QTimer gameRegisterFailTimer; bool ok = false; + bool hostingIsErrorDeactivated = false; void startScen(const ScenarioSettings& scen, QStringList); void readConfig(); @@ -333,6 +337,7 @@ private: CMD_FUNCTION(ircWatch); CMD_FUNCTION(packsList); + CMD_FUNCTION(packsDirectory); CMD_FUNCTION(packsVersionsAdd); CMD_FUNCTION(packsVersionsDelete); CMD_FUNCTION(packsVersionsDefault); -- cgit v1.2.3-54-g00ecf