Fix BitMessage shutdown.

This commit is contained in:
/dev/urandom 2016-10-26 22:20:05 +02:00
parent 45c382c892
commit 7ad37f3da5
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

View File

@ -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;
}