mirror of https://gitee.com/bigwinds/arangodb
Fix ocasionally hangling shut down on mac
This commit is contained in:
parent
44ef7e9627
commit
2dbd179656
|
@ -825,7 +825,10 @@ void HeartbeatThread::syncDBServerStatusQuo() {
|
||||||
_backgroundJobScheduledOrRunning = true;
|
_backgroundJobScheduledOrRunning = true;
|
||||||
|
|
||||||
// the JobGuard is in the operator() of HeartbeatBackgroundJob
|
// the JobGuard is in the operator() of HeartbeatBackgroundJob
|
||||||
_ioService->post(HeartbeatBackgroundJob(shared_from_this(), TRI_microtime()));
|
if (!isStopping() && !_ioService->stopped()) {
|
||||||
|
_ioService->
|
||||||
|
post(HeartbeatBackgroundJob(shared_from_this(), TRI_microtime()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue