~RemoteApplication() { if(m_listeningThread) { m_listeningThread->join(); delete m_listeningThread; m_listeningThread = 0; } }
~Connection() { mysock->Close(); myThread->join(); CoreSuspender suspend; color_ostream_proxy out(Core::getInstance().getConsole()); onDisconnect(out,myId); delete mysock; delete myThread; }