This commit is contained in:
2020-04-30 17:58:31 +02:00
parent f41083842f
commit 903ebb2679
4 changed files with 34 additions and 33 deletions

View File

@@ -74,7 +74,7 @@ void BinaryFile::CloseCurrentFile() {
void BinaryFile::CloseAllFiles() {
CloseCurrentFile();
if (master && (*detIndex==0)) {
if (master) {
if (masterfd)
fclose(masterfd);
masterfd = 0;
@@ -137,7 +137,7 @@ void BinaryFile::CreateMasterFile(bool mfwenable, masterAttributes& attr) {
numFramesInFile = 0;
numActualPacketsInFile = 0;
if (mfwenable && master && (*detIndex==0)) {
if (mfwenable && master) {
std::ostringstream os;
os << *filePath << "/" << *fileNamePrefix << "_master"