Browse Source

do not detach

LPA-1
Volker Birk 7 years ago
parent
commit
b224073ba9
  1. 6
      Adapter.cc

6
Adapter.cc

@ -38,15 +38,13 @@ namespace pEp {
if (notifyHandshake) if (notifyHandshake)
_notifyHandshake = notifyHandshake; _notifyHandshake = notifyHandshake;
PEP_SESSION _session = session(); session();
{ {
lock_guard<mutex> lock(mtx()); lock_guard<mutex> lock(mtx());
if (!Adapter::_sync_thread) { if (!Adapter::_sync_thread)
Adapter::_sync_thread = new thread(sync_thread, obj); Adapter::_sync_thread = new thread(sync_thread, obj);
Adapter::_sync_thread->detach();
}
} }
} }

Loading…
Cancel
Save