mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
c75ee8a661
Fixes #1926 : When an IPC event was processed locally, if the window was closed before the core could start, the event handler would be forever stuck in the background waiting for the core to start. We fix this by substituting QApplication::quit() by a Nexus::quit() function and a Nexus::isRunning() function, which gives us a condition for exiting blocking processEvents() loops. We cannot simply use QApplication::quit(), because this function has no effect before the start of the event loop. The problem was further exacerbated by the Tox URI event handler being (incorrectly) blocking. The IPC owner would block in this event handler, and the sender of the event would give up waiting and process the event itself a second time, potentially triggering the first bug. We fix the event handlers accordingly to be (mostly) non-blocking. Also fixes a related deadlock between ~Core and ~Profile in the case of an early exit |
||
---|---|---|
.. | ||
db | ||
history.cpp | ||
history.h | ||
offlinemsgengine.cpp | ||
offlinemsgengine.h | ||
profile.cpp | ||
profile.h | ||
profilelocker.cpp | ||
profilelocker.h | ||
serialize.cpp | ||
serialize.h | ||
settings.cpp | ||
settings.h | ||
settingsserializer.cpp | ||
settingsserializer.h | ||
smileypack.cpp | ||
smileypack.h | ||
toxsave.cpp | ||
toxsave.h |