Fix BitMessage shutdown.
This commit is contained in:
parent
45c382c892
commit
7ad37f3da5
@ -187,15 +187,7 @@ namespace Components
|
||||
{
|
||||
BitMessage::Save();
|
||||
|
||||
// We have to do that in another thread, as sometimes the terminating thread already holds the mutex lock...
|
||||
#ifndef DEBUG
|
||||
std::thread([&] ()
|
||||
{
|
||||
#endif
|
||||
delete BitMessage::BMClient;
|
||||
#ifndef DEBUG
|
||||
}).join();
|
||||
#endif
|
||||
delete BitMessage::BMClient;
|
||||
|
||||
BitMessage::BMClient = nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user