diff --git a/src/accounts/xmpp/sip/XmppSip.cpp b/src/accounts/xmpp/sip/XmppSip.cpp index 68f71ad83..2333f5d97 100644 --- a/src/accounts/xmpp/sip/XmppSip.cpp +++ b/src/accounts/xmpp/sip/XmppSip.cpp @@ -325,6 +325,10 @@ XmppSipPlugin::onDisconnect( Jreen::Client::DisconnectReason reason ) switch( reason ) { case Jreen::Client::User: + foreach( const Jreen::JID &peer, m_peers.keys() ) + { + handlePeerStatus( peer, Jreen::Presence::Unavailable ); + } break; case Jreen::Client::AuthorizationError: @@ -356,11 +360,6 @@ XmppSipPlugin::onDisconnect( Jreen::Client::DisconnectReason reason ) removeMenuHelper(); - Q_FOREACH( const Jreen::JID &peer, m_peers.keys() ) - { - handlePeerStatus( peer, Jreen::Presence::Unavailable ); - } - if ( !m_infoPlugin.isNull() ) Tomahawk::InfoSystem::InfoSystem::instance()->removeInfoPlugin( infoPlugin() ); }