diff --git a/callback_dispatcher.cc b/callback_dispatcher.cc index 3b82872..69ee486 100644 --- a/callback_dispatcher.cc +++ b/callback_dispatcher.cc @@ -29,9 +29,7 @@ namespace pEp { throw std::invalid_argument("messageToSend must be set"); targets.push_back({messageToSend, notifyHandshake, on_startup, shutdown}); - - if (!Adapter::on_sync_thread()) - semaphore.go(); + semaphore.go(); } void CallbackDispatcher::remove(::messageToSend_t messageToSend)