mirror of https://gitee.com/bigwinds/arangodb
Try to fix a shutdown bug in Scheduler.
This commit is contained in:
parent
7b1c9b7833
commit
c1428e81cd
|
@ -166,7 +166,12 @@ Scheduler::Scheduler(size_t nrThreads, size_t maxQueueSize)
|
||||||
initializeSignalHandlers();
|
initializeSignalHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
Scheduler::~Scheduler() { deleteOldThreads(); }
|
Scheduler::~Scheduler() {
|
||||||
|
if (_threadManager != nullptr) {
|
||||||
|
_threadManager->cancel();
|
||||||
|
}
|
||||||
|
deleteOldThreads();
|
||||||
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// --SECTION-- constructors and destructors
|
// --SECTION-- constructors and destructors
|
||||||
|
|
Loading…
Reference in New Issue