From 8673c63d3c275e0201c81297e0d11da8a9c4fb67 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 16 Mar 2025 11:57:52 +0100 Subject: [PATCH] close rw on completion --- solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp b/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp index 3958432..6fcc3a4 100644 --- a/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp +++ b/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp @@ -1206,6 +1206,10 @@ bool SHA1_NGCFT1::onEvent(const Events::NGCFT1_recv_done& e) { o.emplace_or_replace(); std::cout << "SHA1_NGCFT1: got all chunks for \n" << info << "\n"; + + // close file, as we likely no longer needs the write access we likely had + file2 = nullptr; + o.remove(); break; } }