mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +02:00
untested: Try to only take sources offline if user explicitly set xmpp-account offline not if connection failed
This commit is contained in:
@@ -325,6 +325,10 @@ XmppSipPlugin::onDisconnect( Jreen::Client::DisconnectReason reason )
|
|||||||
switch( reason )
|
switch( reason )
|
||||||
{
|
{
|
||||||
case Jreen::Client::User:
|
case Jreen::Client::User:
|
||||||
|
foreach( const Jreen::JID &peer, m_peers.keys() )
|
||||||
|
{
|
||||||
|
handlePeerStatus( peer, Jreen::Presence::Unavailable );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Jreen::Client::AuthorizationError:
|
case Jreen::Client::AuthorizationError:
|
||||||
@@ -356,11 +360,6 @@ XmppSipPlugin::onDisconnect( Jreen::Client::DisconnectReason reason )
|
|||||||
|
|
||||||
removeMenuHelper();
|
removeMenuHelper();
|
||||||
|
|
||||||
Q_FOREACH( const Jreen::JID &peer, m_peers.keys() )
|
|
||||||
{
|
|
||||||
handlePeerStatus( peer, Jreen::Presence::Unavailable );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( !m_infoPlugin.isNull() )
|
if ( !m_infoPlugin.isNull() )
|
||||||
Tomahawk::InfoSystem::InfoSystem::instance()->removeInfoPlugin( infoPlugin() );
|
Tomahawk::InfoSystem::InfoSystem::instance()->removeInfoPlugin( infoPlugin() );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user