mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Only reconnect if we have any retries left.
This commit is contained in:
@@ -129,11 +129,14 @@ ConnectionManager::authFailed()
|
|||||||
disconnect( d->controlConnection.data(), SIGNAL( authFailed() ), this, SLOT( authFailed() ) );
|
disconnect( d->controlConnection.data(), SIGNAL( authFailed() ), this, SLOT( authFailed() ) );
|
||||||
disconnect( d->controlConnection.data(), SIGNAL( authTimeout() ), this, SLOT( authFailed() ) );
|
disconnect( d->controlConnection.data(), SIGNAL( authTimeout() ), this, SLOT( authFailed() ) );
|
||||||
|
|
||||||
|
// Only retry if we have any retries left.
|
||||||
|
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.
|
||||||
tryConnect();
|
tryConnect();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user