mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00: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
44ee228589
commit
ed71bb7cb9
@ -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 New Issue
Block a user