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