mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Delete network reply at the very end
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user