mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
Delete network reply at the very end
This commit is contained in:
@@ -1020,7 +1020,6 @@ namespace BlackCore::Fsd
|
|||||||
{
|
{
|
||||||
this, [ = ](QNetworkReply *nwReply)
|
this, [ = ](QNetworkReply *nwReply)
|
||||||
{
|
{
|
||||||
nwReply->deleteLater();
|
|
||||||
const QByteArray data = nwReply->readAll();
|
const QByteArray data = nwReply->readAll();
|
||||||
const QJsonObject json = QJsonDocument::fromJson(data).object();
|
const QJsonObject json = QJsonDocument::fromJson(data).object();
|
||||||
|
|
||||||
@@ -1034,6 +1033,7 @@ namespace BlackCore::Fsd
|
|||||||
CLogMessage(this).error(u"Vatsim auth token endpoint: %1") << error;
|
CLogMessage(this).error(u"Vatsim auth token endpoint: %1") << error;
|
||||||
disconnectFromServer();
|
disconnectFromServer();
|
||||||
}
|
}
|
||||||
|
nwReply->deleteLater();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user