Set shm->valid to false on disconnect.

This commit is contained in:
Isaac Connor 2021-08-29 09:17:31 -04:00
parent ea83e8c3b1
commit 85ade02cba
1 changed files with 1 additions and 0 deletions

View File

@ -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);