mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 06:45:49 +03:00
Checksums: Explicitly close file before reporting result
To ensure it's no longer open when the finished signal fires.
This commit is contained in:
parent
e91e1ca78f
commit
c9476a11f4
1 changed files with 3 additions and 1 deletions
|
@ -261,7 +261,9 @@ void ComputeChecksum::startImpl(std::unique_ptr<QIODevice> device)
|
|||
}
|
||||
return QByteArray();
|
||||
}
|
||||
return ComputeChecksum::computeNow(sharedDevice.data(), type);
|
||||
auto result = ComputeChecksum::computeNow(sharedDevice.data(), type);
|
||||
sharedDevice->close();
|
||||
return result;
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue