Add check if file is already closed

This commit is contained in:
2020-05-27 18:43:24 +02:00
parent eb07d91f7b
commit 4f044d6b69
+4
View File
@@ -76,6 +76,10 @@ JFH5Writer::~JFH5Writer()
void JFH5Writer::close_file()
{
if (file_.getId() == -1) {
return;
}
image_dataset_.close();
hsize_t b_m_dims[2] = {n_images_, 1};