summaryrefslogtreecommitdiffstats
path: root/src/DeadlockDetect.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-21 22:39:53 +0200
committerMattes D <github@xoft.cz>2014-08-21 22:39:53 +0200
commit64fec204c4c5062461a7188b58026d062519b417 (patch)
tree9ffc538cdb5bd581362542a3fa131efb96b4d9db /src/DeadlockDetect.cpp
parentcSetChunkData: Added missing initializers. (diff)
downloadcuberite-64fec204c4c5062461a7188b58026d062519b417.tar
cuberite-64fec204c4c5062461a7188b58026d062519b417.tar.gz
cuberite-64fec204c4c5062461a7188b58026d062519b417.tar.bz2
cuberite-64fec204c4c5062461a7188b58026d062519b417.tar.lz
cuberite-64fec204c4c5062461a7188b58026d062519b417.tar.xz
cuberite-64fec204c4c5062461a7188b58026d062519b417.tar.zst
cuberite-64fec204c4c5062461a7188b58026d062519b417.zip
Diffstat (limited to '')
-rw-r--r--src/DeadlockDetect.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DeadlockDetect.cpp b/src/DeadlockDetect.cpp
index f73a45555..7f703416c 100644
--- a/src/DeadlockDetect.cpp
+++ b/src/DeadlockDetect.cpp
@@ -21,7 +21,8 @@ const int CYCLE_MILLISECONDS = 100;
cDeadlockDetect::cDeadlockDetect(void) :
- super("DeadlockDetect")
+ super("DeadlockDetect"),
+ m_IntervalSec(1000)
{
}
@@ -136,6 +137,7 @@ void cDeadlockDetect::CheckWorldAge(const AString & a_WorldName, Int64 a_Age)
void cDeadlockDetect::DeadlockDetected(void)
{
+ LOGERROR("Deadlock detected, aborting the server");
ASSERT(!"Deadlock detected");
abort();
}