1
0
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:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-06 15:21:42 +01:00
parent e1b301eb83
commit 51efc3295f
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -52,7 +52,11 @@ IPC::IPC() :
IPC::~IPC()
{
if (globalMemory.lock())
{
*(time_t*)((char*)globalMemory.data()+sizeof(globalId)) = 0;
globalMemory.unlock();
}
}
bool IPC::isCurrentOwner()