diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-03-28 23:33:24 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-03-30 00:36:15 +0200 |
commit | 222d9957a1a566464d6a824caaf9a56539eb3234 (patch) | |
tree | c4bd9041e07a61c6f1a1eaaf70838e26fafae82e /src/DeadlockDetect.cpp | |
parent | Do an early check for empty network buffers (#5172) (diff) | |
download | cuberite-222d9957a1a566464d6a824caaf9a56539eb3234.tar cuberite-222d9957a1a566464d6a824caaf9a56539eb3234.tar.gz cuberite-222d9957a1a566464d6a824caaf9a56539eb3234.tar.bz2 cuberite-222d9957a1a566464d6a824caaf9a56539eb3234.tar.lz cuberite-222d9957a1a566464d6a824caaf9a56539eb3234.tar.xz cuberite-222d9957a1a566464d6a824caaf9a56539eb3234.tar.zst cuberite-222d9957a1a566464d6a824caaf9a56539eb3234.zip |
Diffstat (limited to '')
-rw-r--r-- | src/DeadlockDetect.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/DeadlockDetect.cpp b/src/DeadlockDetect.cpp index 776ae5b26..3f47589d8 100644 --- a/src/DeadlockDetect.cpp +++ b/src/DeadlockDetect.cpp @@ -51,18 +51,18 @@ cDeadlockDetect::~cDeadlockDetect() -bool cDeadlockDetect::Start(int a_IntervalSec) +void cDeadlockDetect::Start(int a_IntervalSec) { m_IntervalSec = a_IntervalSec; // Read the initial world data: cRoot::Get()->ForEachWorld([=](cWorld & a_World) - { - SetWorldAge(a_World.GetName(), a_World.GetWorldAge()); - return false; - } - ); - return Super::Start(); + { + SetWorldAge(a_World.GetName(), a_World.GetWorldAge()); + return false; + }); + + Super::Start(); } |