Skip to content
Snippets Groups Projects
Commit 75e94641 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

data_transfer: close stream before checking shasum

Else, sometimes the file is not correct and cause an invalid shasum

Change-Id: Ia66bb715331589e1990f0fa7d6ac753187ed2bc1
parent 82907de8
No related branches found
No related tags found
No related merge requests found
......@@ -203,6 +203,8 @@ IncomingFile::process()
auto shared = w.lock();
if (!shared)
return;
if (shared->stream_ && shared->stream_.is_open())
shared->stream_.close();
auto correct = shared->sha3Sum_.empty();
if (!correct) {
// Verify shaSum
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment