diff --git a/src/net/updatecheck.cpp b/src/net/updatecheck.cpp index 16e6dd816..245be4f97 100644 --- a/src/net/updatecheck.cpp +++ b/src/net/updatecheck.cpp @@ -121,6 +121,10 @@ void UpdateCheck::checkForUpdate() void UpdateCheck::handleResponse(QNetworkReply* reply) { + if (isCurrentVersionStable() == false) { + qWarning() << "qTox is running an unstable version"; + } + assert(reply != nullptr); if (reply == nullptr) { qWarning() << "Update check returned null reply, ignoring"; @@ -157,9 +161,5 @@ void UpdateCheck::handleResponse(QNetworkReply* reply) emit upToDate(); } - if (isCurrentVersionStable() == false) { - qWarning() << "qTox is running an unstable version"; - } - reply->deleteLater(); }