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; return 1;
} }
if (ev == nullptr) { if (ev == nullptr) {
if (_sync_thread) { if (!on_sync_thread()) {
_sync_thread->join(); if (_sync_thread) {
delete _sync_thread; _sync_thread->join();
_sync_thread = nullptr; delete _sync_thread;
_sync_thread = nullptr;
}
} }
q.clear(); q.clear();
} }

Loading…
Cancel
Save