mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-19 23:41:51 +02:00
Connections should be started in the thread they live
This commit is contained in:
parent
a8e552c7ac
commit
6bb441281e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user