QThread::wait: Thread tried to wait on itself
void jProtocol::setStatus(Presence::PresenceType presence, QString message)void jProtocol::run()void jProtocol::onDisconnect(ConnectionError e)
if (!m_jabber_protocol->wait(1000)) m_jabber_protocol->terminate();
void jProtocol::onDisconnect(ConnectionError e){ qDebug() << "exit"; TreeModelItem item; item.m_protocol_name = "Jabber"; item.m_account_name = m_account_name; item.m_item_type = 2; qDebug() << "check error"; // <<<<<<<<<<<<<<<<<<<<<< if(e != ConnUserDisconnected && e != ConnNotConnected) { QString error_tr; switch(e) { ... default: error_tr = tr("Unknown error. It is amazing that you see it... O_o"); break; } qDebug() << "emit systemNotification"; // <<<<<<<<<<<<<<<<<<<<<<<<< emit systemNotification(m_account_name,error_tr); }//zodiac.test@jabber.egghost.ru qDebug() << "setAcountInOnlene()"; // <<<<<<<<<<<<<<<<<<<<<<< m_jabber_account->getPluginSystem().setAccountIsOnline(item, false); qDebug() << "setOffline()"; // <<<<<<<<<<<<<<<<<<<<<<< m_jabber_roster->setOffline(); // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< и т.д. emit setRealStatus(Presence::Unavailable); exit(); wait();}
emit setRealStatus(Presence::Unavailable); qDebug() << "exit2"; emit threadWait();
void jAccount::threadWait(){ qDebug() << "threadWait()"; m_jabber_protocol->exit(); if (!m_jabber_protocol->wait(1000)) m_jabber_protocol->terminate();}