diff --git a/src/user.cpp b/src/user.cpp index 2cf74cbd1c38a2c1369d0d4459380c015613f2fb..bd4c27263552671c1861dbbe44fdf704a188a0d2 100644 --- a/src/user.cpp +++ b/src/user.cpp @@ -164,7 +164,6 @@ void User::setConnected(bool connected) { } void User::handlePresence(Swift::Presence::ref presence) { - std::cout << "PRESENCE " << presence->getFrom().toString() << "\n"; if (!m_connected) { // we are not connected to legacy network, so we should do it when disco#info arrive :) if (m_readyForConnect == false) { @@ -299,7 +298,7 @@ void User::handleDisconnected(const std::string &error) { // We can't be sure finishSession sends unavailable presence everytime, so check if user gets removed // in finishSession(...) call and if not, remove it here. std::string jid = m_jid.toBare().toString(); - dynamic_cast(m_component->getStanzaChannel())->finishSession(m_jid, boost::shared_ptr(new Swift::StreamError())); + dynamic_cast(m_component->getStanzaChannel())->finishSession(m_jid, boost::shared_ptr(new Swift::StreamError(Swift::StreamError::UndefinedCondition, "test"))); if (m_userManager->getUser(jid) != NULL) { m_userManager->removeUser(this); }