Skip to content

Commit

Permalink
Set extpipe to NULL upon close. Closes Motion-Project#1659
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Dave committed Apr 7, 2023
1 parent c3fc8a9 commit 8d37697
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@ static void event_extpipe_end(struct context *cnt, motion_event eventtype
MOTION_LOG(NTC, TYPE_EVENTS, NO_ERRNO, _("pclose return: %d"),
pclose(cnt->extpipe));
event(cnt, EVENT_FILECLOSE, NULL, cnt->extpipefilename, (void *)FTYPE_MPEG, tv1);
cnt->extpipe = NULL;
}
}

Expand Down

0 comments on commit 8d37697

Please sign in to comment.