From b224073ba9841574b18de6af847636d8255fc6ee Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Thu, 4 Oct 2018 17:48:28 +0200 Subject: [PATCH] do not detach --- Adapter.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(); - } } }