mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Only delete ControlConnection if we don't expect any incoming connections.
This commit is contained in:
@@ -414,8 +414,12 @@ void Servent::handleSipInfo( const Tomahawk::peerinfo_ptr& peerInfo )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
tDebug() << Q_FUNC_INFO << "They are not visible, doing nothing atm";
|
tDebug() << Q_FUNC_INFO << "They are not visible, doing nothing atm";
|
||||||
if ( peerInfo->controlConnection() )
|
|
||||||
delete peerInfo->controlConnection();
|
if ( !visibleExternally() )
|
||||||
|
{
|
||||||
|
if ( peerInfo->controlConnection() )
|
||||||
|
delete peerInfo->controlConnection();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user