mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
IPC: Yield ownership on exit
This commit is contained in:
parent
e1b301eb83
commit
51efc3295f
|
@ -52,7 +52,11 @@ IPC::IPC() :
|
|||
|
||||
IPC::~IPC()
|
||||
{
|
||||
|
||||
if (globalMemory.lock())
|
||||
{
|
||||
*(time_t*)((char*)globalMemory.data()+sizeof(globalId)) = 0;
|
||||
globalMemory.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
bool IPC::isCurrentOwner()
|
||||
|
|
Loading…
Reference in New Issue
Block a user