From 6de8c71d2ab583784db8ec757f54491785b16fd3 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sun, 29 Aug 2021 09:17:31 -0400 Subject: [PATCH] Set shm->valid to false on disconnect. --- src/zm_monitor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 8a1aabe63..8c097fb29 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1052,6 +1052,7 @@ bool Monitor::disconnect() { return true; } + shared_data->valid = false; #if ZM_MEM_MAPPED msync(mem_ptr, mem_size, MS_ASYNC); munmap(mem_ptr, mem_size);