Пример #1
0
 ~RemoteApplication()
 {
     if(m_listeningThread)
     {
         m_listeningThread->join();
         delete m_listeningThread;
         m_listeningThread = 0;
     }
 }
Пример #2
0
    ~Connection()
    {
        mysock->Close();
        myThread->join();

        CoreSuspender suspend;
        color_ostream_proxy out(Core::getInstance().getConsole());
        onDisconnect(out,myId);

        delete mysock;
        delete myThread;
    }