Browse Source

do not join() if on sync thread

sync
Volker Birk 6 years ago
parent
commit
c6352281f8
  1. 10
      Adapter.cc

10
Adapter.cc

@ -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