Make sure the LevelDB is cleanly shutdown.

This commit is contained in:
JoelKatz
2013-04-25 18:25:15 -07:00
parent 3c35a1e8b7
commit 4e579ff3fc

View File

@@ -79,6 +79,11 @@ void Application::stop()
mAuxService.stop();
mJobQueue.shutdown();
#ifdef HAVE_LEVELDB
delete mHashNodeDB:
mHashNodeDB = NULL;
#endif
cLog(lsINFO) << "Stopped: " << mIOService.stopped();
Instance::shutdown();
}