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