mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Disable logging on static instance destruction.
This avoids possible deadlocks on exit when a logger callback exists.
This commit is contained in:
@@ -29,6 +29,7 @@ Storage::Storage(Notifier& notifier, RpcServer& rpc_server)
|
||||
}
|
||||
|
||||
Storage::~Storage() {
|
||||
Logger::GetInstance().SetLogger(nullptr);
|
||||
m_terminating = true;
|
||||
m_rpc_results_cond.notify_all();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user