1
0
Fork 0

Fix ocasionally hangling shut down on mac

This commit is contained in:
Kaveh Vahedipour 2017-04-21 11:10:53 +02:00 committed by Kaveh Vahedipour
parent 44ef7e9627
commit 2dbd179656
1 changed files with 4 additions and 1 deletions

View File

@ -825,7 +825,10 @@ void HeartbeatThread::syncDBServerStatusQuo() {
_backgroundJobScheduledOrRunning = true;
// 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()));
}
}
////////////////////////////////////////////////////////////////////////////////