mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Connections should be started in the thread they live
This commit is contained in:
@@ -380,7 +380,7 @@ ConnectionManager::handoverSocket( QTcpSocketExtra* sock )
|
||||
d_func()->controlConnection->setOutbound( sock->_outbound );
|
||||
d_func()->controlConnection->setPeerPort( sock->peerPort() );
|
||||
|
||||
d_func()->controlConnection->start( sock );
|
||||
QMetaObject::invokeMethod( d_func()->controlConnection, "start", Qt::QueuedConnection, Q_ARG( QTcpSocket*, sock ) );
|
||||
// ControlConntection is now connected, now it can be destroyed if the PeerInfos disappear
|
||||
d_func()->controlConnection->setShutdownOnEmptyPeerInfos( true );
|
||||
d_func()->currentPeerInfo.clear();
|
||||
|
Reference in New Issue
Block a user