mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 01:24:11 +02:00
Move all sockets to the Servent thread.
This commit is contained in:
committed by
Michael Zanetti
parent
c248ebb9e0
commit
0a4a281027
@@ -309,7 +309,7 @@ void ConnectionManager::tryConnect()
|
|||||||
|
|
||||||
peerInfoDebug( d_func()->currentPeerInfo ) << Q_FUNC_INFO << "Connecting socket to " << info.host() << ":" << info.port();
|
peerInfoDebug( d_func()->currentPeerInfo ) << Q_FUNC_INFO << "Connecting socket to " << info.host() << ":" << info.port();
|
||||||
sock->connectToHost( info.host(), info.port(), QTcpSocket::ReadWrite );
|
sock->connectToHost( info.host(), info.port(), QTcpSocket::ReadWrite );
|
||||||
sock->moveToThread( thread() );
|
sock->moveToThread( Servent::instance()->thread() );
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user