diff --git a/callback_dispatcher.cc b/callback_dispatcher.cc index 1986f98..0da0c91 100644 --- a/callback_dispatcher.cc +++ b/callback_dispatcher.cc @@ -62,11 +62,17 @@ namespace pEp { CallbackDispatcher::notifyHandshake, this, &CallbackDispatcher::on_startup, &CallbackDispatcher::on_shutdown); + + for (auto target : targets) + target.notifyHandshake(nullptr, nullptr, SYNC_NOTIFY_START); } void CallbackDispatcher::stop_sync() { pEp::Adapter::shutdown(); + + for (auto target : targets) + target.notifyHandshake(nullptr, nullptr, SYNC_NOTIFY_STOP); } PEP_STATUS CallbackDispatcher::_messageToSend(::message *msg)