1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Do nothing in handleSipInfo if we have not received valid SipInfo

This commit is contained in:
Uwe L. Korn
2013-04-18 11:19:26 +02:00
parent 20d3f1ad72
commit 724fff1b58

View File

@@ -451,10 +451,10 @@ Servent::onSipInfoChanged()
void Servent::handleSipInfo( const Tomahawk::peerinfo_ptr& peerInfo ) void Servent::handleSipInfo( const Tomahawk::peerinfo_ptr& peerInfo )
{ {
// FIXME: Do we need this? // We do not have received the initial SipInfo for this client yet, so wait for it.
// SipInfo info = peerInfo->sipInfo(); // Each client will have at least one non-visible SipInfo
// if ( !info.isValid() ) if ( peerInfo->sipInfo().length() == 0 )
// return; return;
foreach ( SipInfo info, peerInfo->sipInfo() ) foreach ( SipInfo info, peerInfo->sipInfo() )
{ {