From a751f8e219574ebed3f6256813973e186f92ba5b Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Thu, 9 Jul 2020 17:14:29 +0200 Subject: [PATCH] remove possible race condition --- callback_dispatcher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/callback_dispatcher.cc b/callback_dispatcher.cc index 6f4a3ce..c1e8d1d 100644 --- a/callback_dispatcher.cc +++ b/callback_dispatcher.cc @@ -80,8 +80,8 @@ namespace pEp { void CallbackDispatcher::stop_sync() { - callback_dispatcher.semaphore.go(); pEp::Adapter::shutdown(); + callback_dispatcher.semaphore.go(); for (auto target : callback_dispatcher.targets) { if (target.notifyHandshake)