mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 23:39:42 +01:00
Only reconnect if we have any retries left.
This commit is contained in:
parent
d91fb818fd
commit
863462cce0
@ -129,10 +129,13 @@ ConnectionManager::authFailed()
|
||||
disconnect( d->controlConnection.data(), SIGNAL( authFailed() ), this, SLOT( authFailed() ) );
|
||||
disconnect( d->controlConnection.data(), SIGNAL( authTimeout() ), this, SLOT( authFailed() ) );
|
||||
|
||||
// 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.
|
||||
tryConnect();
|
||||
// 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.
|
||||
newControlConnection( d->currentPeerInfo );
|
||||
// Try to connect with the next available SipInfo.
|
||||
tryConnect();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user