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