Set to nullptr after delete

This commit is contained in:
practicalswift
2017-03-18 12:40:58 +01:00
parent fcf556f7e9
commit d93b97fbcf
2 changed files with 3 additions and 0 deletions

View File

@@ -482,6 +482,7 @@ void StopHTTPServer()
LogPrint("http", "Waiting for HTTP worker threads to exit\n");
workQueue->WaitExit();
delete workQueue;
workQueue = nullptr;
}
if (eventBase) {
LogPrint("http", "Waiting for HTTP event thread to exit\n");