From d9dcadcffa48efed920465cd7e14abea209f6c91 Mon Sep 17 00:00:00 2001 From: Roland Rossgotterer Date: Thu, 19 Sep 2019 15:43:33 +0200 Subject: [PATCH] Abort further AFV connection if authentication was failing ref T729 --- src/blackcore/afv/connection/clientconnection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blackcore/afv/connection/clientconnection.cpp b/src/blackcore/afv/connection/clientconnection.cpp index 38c1a4e0c..2a9aa3dd0 100644 --- a/src/blackcore/afv/connection/clientconnection.cpp +++ b/src/blackcore/afv/connection/clientconnection.cpp @@ -43,7 +43,8 @@ namespace BlackCore m_connection.m_userName = userName; m_connection.m_callsign = callsign; - m_apiServerConnection.connectTo(userName, password, m_networkVersion); + bool result = m_apiServerConnection.connectTo(userName, password, m_networkVersion); + if (!result) { return; } m_connection.m_tokens = m_apiServerConnection.addCallsign(m_connection.m_callsign); m_connection.m_authenticatedDateTimeUtc = QDateTime::currentDateTimeUtc(); m_connection.createCryptoChannels();