do not join() if on sync thread

sync
Volker Birk 3 years ago
parent e5862ded4e
commit c6352281f8

@ -51,10 +51,12 @@ namespace pEp {
return 1;
}
if (ev == nullptr) {
if (_sync_thread) {
_sync_thread->join();
delete _sync_thread;
_sync_thread = nullptr;
if (!on_sync_thread()) {
if (_sync_thread) {
_sync_thread->join();
delete _sync_thread;
_sync_thread = nullptr;
}
}
q.clear();
}

Loading…
Cancel
Save