From 6027577b0d2d1cd635e0c014e6f6b9d76b77d4fd Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Thu, 4 Oct 2018 14:03:50 +0200 Subject: [PATCH] detaching sync thread --- Adapter.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Adapter.cc b/Adapter.cc index 2acb0b8..81a7746 100644 --- a/Adapter.cc +++ b/Adapter.cc @@ -43,8 +43,10 @@ namespace pEp { { lock_guard lock(mtx()); - if (!_sync_thread) + if (!_sync_thread) { _sync_thread = new thread(sync_thread, obj); + _sync_thread->detach(); + } } }