mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
Implement message modes for 9.6
Fix possible crash when closing otclient Fix private messages Fix messages in 9.6
This commit is contained in:
@@ -41,7 +41,10 @@ Connection::Connection() :
|
||||
|
||||
Connection::~Connection()
|
||||
{
|
||||
assert(!g_app.isTerminated());
|
||||
#ifndef NDEBUG
|
||||
if(g_app.isTerminated())
|
||||
g_logger.warning("Connection reference not released");
|
||||
#endif
|
||||
close();
|
||||
}
|
||||
|
||||
|
@@ -33,7 +33,10 @@ Protocol::Protocol()
|
||||
|
||||
Protocol::~Protocol()
|
||||
{
|
||||
assert(!g_app.isTerminated());
|
||||
#ifndef NDEBUG
|
||||
if(g_app.isTerminated())
|
||||
g_logger.warning("Protocol reference not released");
|
||||
#endif
|
||||
disconnect();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user