mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-20 13:34:23 -04:00
Unset holdbuffer so that when we connect, we reset the shm buffer pointer. cleanup initializers in Image
This commit is contained in:
1 parent
05043a37b1
commit
dec440ead1
3 files changed
+23
-19
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user