diff --git a/Adapter.cc b/Adapter.cc index 2fcc0ea..c23a7ac 100644 --- a/Adapter.cc +++ b/Adapter.cc @@ -38,15 +38,13 @@ namespace pEp { if (notifyHandshake) _notifyHandshake = notifyHandshake; - PEP_SESSION _session = session(); + session(); { lock_guard lock(mtx()); - if (!Adapter::_sync_thread) { + if (!Adapter::_sync_thread) Adapter::_sync_thread = new thread(sync_thread, obj); - Adapter::_sync_thread->detach(); - } } }