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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user