Browse Source

do not join() if on sync thread

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

2
Adapter.cc

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

Loading…
Cancel
Save