Disable logging on static instance destruction.

This avoids possible deadlocks on exit when a logger callback exists.
This commit is contained in:
Peter Johnson
2015-09-12 21:44:51 -07:00
parent f7e603c7db
commit 6d8e796932
3 changed files with 3 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ DispatcherBase::DispatcherBase(Storage& storage, Notifier& notifier)
}
DispatcherBase::~DispatcherBase() {
Logger::GetInstance().SetLogger(nullptr);
Stop();
}