summaryrefslogtreecommitdiffstats
path: root/src/DeadlockDetect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DeadlockDetect.cpp')
-rw-r--r--src/DeadlockDetect.cpp14
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();
}