mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-20 04:41:36 +02:00
* Style fixes #2.
This commit is contained in:
@@ -47,7 +47,8 @@ QSharedPointer<ConnectionManager>
|
|||||||
ConnectionManager::getManagerForNodeId( const QString& nodeid )
|
ConnectionManager::getManagerForNodeId( const QString& nodeid )
|
||||||
{
|
{
|
||||||
QMutexLocker locker( &nodeMapMutex );
|
QMutexLocker locker( &nodeMapMutex );
|
||||||
if ( connectionManagers.hash().contains( nodeid ) && !connectionManagers.hash().value( nodeid ).isNull() ) {
|
if ( connectionManagers.hash().contains( nodeid ) && !connectionManagers.hash().value( nodeid ).isNull() )
|
||||||
|
{
|
||||||
return connectionManagers.hash().value( nodeid ).toStrongRef();
|
return connectionManagers.hash().value( nodeid ).toStrongRef();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -139,7 +140,8 @@ ConnectionManager::authFailed()
|
|||||||
peerInfoDebug( d->currentPeerInfo ) << Q_FUNC_INFO << "Connection authentication failed";
|
peerInfoDebug( d->currentPeerInfo ) << Q_FUNC_INFO << "Connection authentication failed";
|
||||||
|
|
||||||
// Only retry if we have any retries left.
|
// Only retry if we have any retries left.
|
||||||
if (!d->currentPeerInfo->sipInfos().isEmpty()) {
|
if ( !d->currentPeerInfo->sipInfos().isEmpty() )
|
||||||
|
{
|
||||||
// If auth failed, we need to setup a new controlconnection as the old will be destroyed.
|
// If auth failed, we need to setup a new controlconnection as the old will be destroyed.
|
||||||
newControlConnection( d->currentPeerInfo );
|
newControlConnection( d->currentPeerInfo );
|
||||||
// Try to connect with the next available SipInfo.
|
// Try to connect with the next available SipInfo.
|
||||||
|
Reference in New Issue
Block a user