diff --git a/server/cloud/cloudauthenticator.cpp b/server/cloud/cloudauthenticator.cpp index 71179738..e4014297 100644 --- a/server/cloud/cloudauthenticator.cpp +++ b/server/cloud/cloudauthenticator.cpp @@ -36,7 +36,6 @@ CloudAuthenticator::CloudAuthenticator(QString clientId, QString clientSecret, Q m_username = loadUserName(); m_networkManager = new QNetworkAccessManager(this); - m_networkManager-> connect(m_networkManager, &QNetworkAccessManager::finished, this, &CloudAuthenticator::replyFinished); connect(m_networkManager, &QNetworkAccessManager::sslErrors, this, &CloudAuthenticator::onSslErrors); @@ -305,8 +304,7 @@ void CloudAuthenticator::replyFinished(QNetworkReply *reply) m_timer->start((expireTime - 20) * 1000); } - if (!authenticated()) - setAuthenticated(true); + setAuthenticated(true); } diff --git a/server/cloud/cloudconnection.cpp b/server/cloud/cloudconnection.cpp index 16b23da0..f64eac6a 100644 --- a/server/cloud/cloudconnection.cpp +++ b/server/cloud/cloudconnection.cpp @@ -175,8 +175,6 @@ void CloudConnection::onError(const QAbstractSocket::SocketError &error) m_connection->close(); setConnected(false); m_error = Cloud::CloudErrorProxyServerNotReachable; - m_pingTimer->stop(); - m_reconnectionTimer->start(); } void CloudConnection::onPingTimeout()