Fix market reload and a crash when exiting

This commit is contained in:
Eduardo Bart
2012-07-31 11:42:26 -03:00
parent bca1af8f11
commit 614d1544c0
13 changed files with 15 additions and 23 deletions

View File

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

View File

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