1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

Do not queue ACL result if there are no sipInfos

* Temporary fix until nodeId is moved/refactored into PeerInfo out of SipInfo
This commit is contained in:
Uwe L. Korn
2013-06-22 00:22:43 +02:00
parent 67a2062a30
commit c9bd8b573a

View File

@@ -437,9 +437,10 @@ Servent::getLocalSipInfos( const QString& nodeid, const QString& key )
void
Servent::queueForAclResult( const QString& username, const QSet<peerinfo_ptr>& peerInfos )
{
if ( peerInfos.isEmpty() )
if ( peerInfos.isEmpty() || (*peerInfos.begin())->sipInfos().isEmpty() )
{
// If all peerInfos disappeared, do not queue.
// If the peerInfo has not got a sipInfo anymore, do not queue either.
return;
}