1
0
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:
Uwe L. Korn 2014-01-27 14:53:29 +00:00
parent d91fb818fd
commit 863462cce0

View File

@ -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();
}
}