mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 11:47:46 +00:00
Delete KZip in CharacterSync
This commit is contained in:
parent
b66baddbdf
commit
b5b9cdfdc0
1 changed files with 3 additions and 1 deletions
|
@ -138,6 +138,7 @@ QCoro::Task<void> CharacterSync::uploadCharacterData(const QDir &dir, const QStr
|
||||||
|
|
||||||
zip->writeFile(gearsetFilename, data);
|
zip->writeFile(gearsetFilename, data);
|
||||||
zip->close();
|
zip->close();
|
||||||
|
delete zip;
|
||||||
|
|
||||||
QMap<QString, QString> fileHashes;
|
QMap<QString, QString> fileHashes;
|
||||||
fileHashes[gearsetFilename] = QString::fromUtf8(QCryptographicHash::hash(data, QCryptographicHash::Algorithm::Sha256).toHex());
|
fileHashes[gearsetFilename] = QString::fromUtf8(QCryptographicHash::hash(data, QCryptographicHash::Algorithm::Sha256).toHex());
|
||||||
|
@ -167,6 +168,7 @@ QCoro::Task<void> CharacterSync::downloadCharacterData(const QDir &dir, const QS
|
||||||
qCDebug(ASTRA_LOG) << "Extracted character data!";
|
qCDebug(ASTRA_LOG) << "Extracted character data!";
|
||||||
|
|
||||||
zip->close();
|
zip->close();
|
||||||
|
delete zip;
|
||||||
|
|
||||||
co_return;
|
co_return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue