Skip to content
Snippets Groups Projects
Commit ca9dcac5 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

FIx KWIK recording stop crashing when multiple processors are present

parent 2b1e129d
Branches
Tags
No related merge requests found
......@@ -152,9 +152,12 @@ void HDF5Recording::closeFiles()
spikesFile->close();
for (int i = 0; i < fileArray.size(); i++)
{
fileArray[i]->stopRecording();
fileArray[i]->close();
bitVoltsArray[i]->clear();
if (fileArray[i]->isOpen())
{
fileArray[i]->stopRecording();
fileArray[i]->close();
bitVoltsArray[i]->clear();
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment