1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-04 21:27:58 +02: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

View File

@@ -414,10 +414,14 @@ 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 ( !visibleExternally() )
{
if ( peerInfo->controlConnection() ) if ( peerInfo->controlConnection() )
delete peerInfo->controlConnection(); delete peerInfo->controlConnection();
} }
} }
}
void void
Servent::incomingConnection( int sd ) Servent::incomingConnection( int sd )