1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 17:29:42 +01:00

untested: Try to only take sources offline if user explicitly set xmpp-account offline not if connection failed

This commit is contained in:
Dominik Schmidt 2013-01-14 06:40:53 +01:00
parent 62df8a2edd
commit 31c695e04a

View File

@ -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() );
}