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