From c9bd8b573a3064b837819b368e876d0c308a439e Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Sat, 22 Jun 2013 00:22:43 +0200 Subject: [PATCH] Do not queue ACL result if there are no sipInfos * Temporary fix until nodeId is moved/refactored into PeerInfo out of SipInfo --- src/libtomahawk/network/Servent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/network/Servent.cpp b/src/libtomahawk/network/Servent.cpp index 315035955..df42a290a 100644 --- a/src/libtomahawk/network/Servent.cpp +++ b/src/libtomahawk/network/Servent.cpp @@ -437,9 +437,10 @@ Servent::getLocalSipInfos( const QString& nodeid, const QString& key ) void Servent::queueForAclResult( const QString& username, const QSet& 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; }