From: Christian Kamm Date: Mon, 23 Sep 2019 14:58:56 +0000 (+0200) Subject: Checksums: Explicitly close file before reporting result X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~178 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c9476a11f4951e827bd84cbf67666a58800ebd76;p=nextcloud-desktop.git Checksums: Explicitly close file before reporting result To ensure it's no longer open when the finished signal fires. --- diff --git a/src/common/checksums.cpp b/src/common/checksums.cpp index 258abe086..462e2d3e5 100644 --- a/src/common/checksums.cpp +++ b/src/common/checksums.cpp @@ -261,7 +261,9 @@ void ComputeChecksum::startImpl(std::unique_ptr device) } return QByteArray(); } - return ComputeChecksum::computeNow(sharedDevice.data(), type); + auto result = ComputeChecksum::computeNow(sharedDevice.data(), type); + sharedDevice->close(); + return result; })); }