Set shm->valid to false on disconnect.
This commit is contained in:
parent
ea83e8c3b1
commit
85ade02cba
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue