Unset holdbuffer so that when we connect, we reset the shm buffer pointer. cleanup initializers in Image

This commit is contained in:
Isaac Connor committed 2022-01-19 15:01:37 -05:00
1 parent 05043a37b1
commit dec440ead1
3 files changed
+23 -19

No files matched your search

+1
View File
@@ -1153,6 +1153,7 @@ bool Monitor::disconnect() {
}
if (purpose == CAPTURE) {
alarm_image.HoldBuffer(false); /* Allow to reset buffer */
if (unlink(mem_file.c_str()) < 0) {
Warning("Can't unlink '%s': %s", mem_file.c_str(), strerror(errno));
}