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(); + } } }