1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 19:37:09 +02:00

Set the state of all peers to offline on disconnecting a jabber account.

This commit is contained in:
Uwe L. Korn
2013-08-12 18:00:10 +02:00
parent 5340dc5e30
commit 29619f5937

View File

@@ -359,6 +359,13 @@ XmppSipPlugin::onDisconnect( Jreen::Client::DisconnectReason reason )
break;
}
m_state = Account::Disconnected;
// Set the state of all peers to offline.
foreach( Jreen::JID peer, m_peers.keys() )
{
m_peers[ peer ] = Jreen::Presence::Unavailable;
}
emit stateChanged( m_state );
removeMenuHelper();