mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-28 04:42:23 +02:00
Add check if file is already closed
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user