Commit 5e80922f authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

datatransfer: fix non-closed output file

At reception, output file was not closed due to silented exception
before the close() call.

Change-Id: I9f2bb2dd29db74391fb95acfa97863b4a118189f
parent 7c722867
......@@ -284,10 +284,10 @@ IncomingFileTransfer::close() noexcept
try {
filenamePromise_.set_value();
fout_.close();
RING_DBG() << "[FTP] file closed with size " << info_.bytesProgress;
} catch (...) {}
fout_.close();
RING_DBG() << "[FTP] file closed with size " << info_.bytesProgress;
emit(DRing::DataTransferEventCode::finished);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment