diff --git a/Adapter.cc b/Adapter.cc index c20e1d7..74f3a54 100644 --- a/Adapter.cc +++ b/Adapter.cc @@ -116,5 +116,10 @@ namespace pEp { } session(release); } + + bool is_sync_running() + { + return _sync_thread != nullptr; + } } } diff --git a/Adapter.hh b/Adapter.hh index 907f8f1..51dc87c 100644 --- a/Adapter.hh +++ b/Adapter.hh @@ -43,6 +43,8 @@ namespace pEp { // injects a NULL event into sync_event_queue to denote sync thread to shutdown, // and joins & removes the sync thread void shutdown(); + + bool is_sync_running(); } }