1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 23:39:42 +01:00

Only clear currentPeerInfo *after* auth

This commit is contained in:
Uwe L. Korn 2014-01-31 19:25:42 +00:00
parent dad902523e
commit 487e78fffd

View File

@ -437,5 +437,4 @@ ConnectionManager::handoverSocket( QTcpSocketExtra* 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();
}