1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
qTox/src/persistence
tux3 c75ee8a661
fix: Various IPC event handling and related bugs on startup
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
2017-02-17 17:18:52 +01:00
..
db refactor(history): remove deprecated historykeeper 2017-02-05 22:20:12 +01:00
history.cpp refactor(history): remove deprecated historykeeper 2017-02-05 22:20:12 +01:00
history.h revert: "refactor: Added to include path and exclude it from all includes" 2016-12-29 16:10:53 +00:00
offlinemsgengine.cpp style: Fix style of a lot of pointers 2017-01-06 23:03:58 +03:00
offlinemsgengine.h revert: "refactor: Added to include path and exclude it from all includes" 2016-12-29 16:10:53 +00:00
profile.cpp fix: Various IPC event handling and related bugs on startup 2017-02-17 17:18:52 +01:00
profile.h refactor(encryption): move everything to ToxEncrypt 2017-02-07 20:05:32 +01:00
profilelocker.cpp revert: "refactor: Added to include path and exclude it from all includes" 2016-12-29 16:10:53 +00:00
profilelocker.h chore: explicitly mention that copyright belongs to qTox contributors 2016-11-29 11:12:06 +00:00
serialize.cpp revert: "refactor: Added to include path and exclude it from all includes" 2016-12-29 16:10:53 +00:00
serialize.h chore: explicitly mention that copyright belongs to qTox contributors 2016-11-29 11:12:06 +00:00
settings.cpp refactor(history): remove deprecated historykeeper 2017-02-05 22:20:12 +01:00
settings.h feat(toxid): reduce passing Tox IDs around 2017-01-04 00:20:24 +01:00
settingsserializer.cpp refactor(encryption): move everything to ToxEncrypt 2017-02-07 20:05:32 +01:00
settingsserializer.h chore: explicitly mention that copyright belongs to qTox contributors 2016-11-29 11:12:06 +00:00
smileypack.cpp fix: Add workaround for FreeBSD and ICU 2017-01-24 23:30:08 +03:00
smileypack.h chore: explicitly mention that copyright belongs to qTox contributors 2016-11-29 11:12:06 +00:00
toxsave.cpp revert: "refactor: Added to include path and exclude it from all includes" 2016-12-29 16:10:53 +00:00
toxsave.h chore: explicitly mention that copyright belongs to qTox contributors 2016-11-29 11:12:06 +00:00