1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-20 21:02:26 +02:00

* Style fixes #2.

This commit is contained in:
Christian Muehlhaeuser
2014-08-21 19:22:12 +02:00
parent 5240a0b0d4
commit cd548b8334
2 changed files with 16 additions and 14 deletions

View File

@@ -47,7 +47,8 @@ QSharedPointer<ConnectionManager>
ConnectionManager::getManagerForNodeId( const QString& nodeid )
{
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();
}
@@ -139,7 +140,8 @@ ConnectionManager::authFailed()
peerInfoDebug( d->currentPeerInfo ) << Q_FUNC_INFO << "Connection authentication failed";
// 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.
newControlConnection( d->currentPeerInfo );
// Try to connect with the next available SipInfo.