[BitMessage] Small sanity check
This commit is contained in:
parent
0739e4aa48
commit
d52d316cd2
@ -202,19 +202,19 @@ namespace Components
|
|||||||
}
|
}
|
||||||
|
|
||||||
void BitMessage::ShutDown()
|
void BitMessage::ShutDown()
|
||||||
|
{
|
||||||
|
if (BitMessage::BMClient)
|
||||||
{
|
{
|
||||||
BitMessage::Save();
|
BitMessage::Save();
|
||||||
delete BitMessage::BMClient;
|
delete BitMessage::BMClient;
|
||||||
BitMessage::BMClient = nullptr;
|
BitMessage::BMClient = nullptr;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
BitMessage::~BitMessage()
|
BitMessage::~BitMessage()
|
||||||
{
|
|
||||||
if (BitMessage::BMClient)
|
|
||||||
{
|
{
|
||||||
BitMessage::ShutDown();
|
BitMessage::ShutDown();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void BitMessage::SetDefaultTTL(time_t ttl)
|
void BitMessage::SetDefaultTTL(time_t ttl)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user