1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(ipc): Call processEvent on timer timeout

Fix #4609
This commit is contained in:
Diadlo 2017-08-31 23:09:38 +03:00
parent 89198f5e2d
commit c2140e21ad
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -46,7 +46,7 @@ IPC::IPC(uint32_t profileId)
timer.setInterval(EVENT_TIMER_MS);
timer.setSingleShot(true);
processEvents();
connect(&timer, &QTimer::timeout, this, &IPC::processEvents);
// The first started instance gets to manage the shared memory by taking ownership
// Every time it processes events it updates the global shared timestamp "lastProcessed"