1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

* Only delete ControlConnection if we don't expect any incoming connections.

This commit is contained in:
Christian Muehlhaeuser 2013-04-16 10:59:54 +02:00
parent fdf1ddc61a
commit 8b42dfcc7a

@ -414,8 +414,12 @@ void Servent::handleSipInfo( const Tomahawk::peerinfo_ptr& peerInfo )
else
{
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();
}
}
}