mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
Fix market reload and a crash when exiting
This commit is contained in:
@@ -42,8 +42,7 @@ Connection::Connection() :
|
||||
Connection::~Connection()
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
if(g_app.isTerminated())
|
||||
g_logger.warning("Connection reference not released");
|
||||
assert(!g_app.isTerminated());
|
||||
#endif
|
||||
close();
|
||||
}
|
||||
|
@@ -34,8 +34,7 @@ Protocol::Protocol()
|
||||
Protocol::~Protocol()
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
if(g_app.isTerminated())
|
||||
g_logger.warning("Protocol reference not released");
|
||||
assert(!g_app.isTerminated());
|
||||
#endif
|
||||
disconnect();
|
||||
}
|
||||
|
Reference in New Issue
Block a user