From 85ade02cba79418755ec64a3848b73b9b107702d 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 c1fadd6e1..a15d2c99d 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1063,6 +1063,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);