From 3a236f16135e56e566dc6d88638246f4b6af266e Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Tue, 30 Jun 2020 23:49:54 +0200 Subject: [PATCH] notify applications --- callback_dispatcher.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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)