Delete network reply at the very end

This commit is contained in:
Roland Rossgotterer
2022-02-01 14:01:21 +01:00
parent 860967ba01
commit 1c23dfc0ab

View File

@@ -1020,7 +1020,6 @@ namespace BlackCore::Fsd
{
this, [ = ](QNetworkReply *nwReply)
{
nwReply->deleteLater();
const QByteArray data = nwReply->readAll();
const QJsonObject json = QJsonDocument::fromJson(data).object();
@@ -1034,6 +1033,7 @@ namespace BlackCore::Fsd
CLogMessage(this).error(u"Vatsim auth token endpoint: %1") << error;
disconnectFromServer();
}
nwReply->deleteLater();
}
});
}