summaryrefslogtreecommitdiffstats
path: root/src/crsm.hpp
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2015-10-29 15:29:08 +0100
committerMarkus Mittendrein <git@maxmitti.tk>2015-10-31 01:52:09 +0100
commit00a8804ab8cc0bfd7b67a3c947f5d0de0eb958dc (patch)
tree9d491b86a0264b11be107a87c2fa1252bb5fd051 /src/crsm.hpp
parent920a7f8d46f62b06812145fa3b350f3eb6f1af80 (diff)
downloadmanager-00a8804ab8cc0bfd7b67a3c947f5d0de0eb958dc.tar.gz
manager-00a8804ab8cc0bfd7b67a3c947f5d0de0eb958dc.zip
Add 5 minute hosting timeout on a failure while registering a game at
the masterserver
Diffstat (limited to 'src/crsm.hpp')
-rw-r--r--src/crsm.hpp5
1 files changed, 5 insertions, 0 deletions
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 <QSignalMapper>
#include <QTcpServer>
#include <QTcpSocket>
+#include <QTimer>
#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<QTcpSocket*, ManagementConnection> 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);