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; } }