Set shm->valid to false on disconnect.

This commit is contained in:
Isaac Connor 2021-08-29 09:17:31 -04:00
parent 4af979c842
commit 6de8c71d2a
1 changed files with 1 additions and 0 deletions

View File

@ -1052,6 +1052,7 @@ bool Monitor::disconnect() {
return true; return true;
} }
shared_data->valid = false;
#if ZM_MEM_MAPPED #if ZM_MEM_MAPPED
msync(mem_ptr, mem_size, MS_ASYNC); msync(mem_ptr, mem_size, MS_ASYNC);
munmap(mem_ptr, mem_size); munmap(mem_ptr, mem_size);