From e5d9d0d24bc32dcebcd5d2f86ca5cca579bc5dbb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 23 Nov 2014 19:24:08 +0000 Subject: -fix sync signalling for plugin monitoring --- src/transport/transport_api_monitor_plugins.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/transport/transport_api_monitor_plugins.c') diff --git a/src/transport/transport_api_monitor_plugins.c b/src/transport/transport_api_monitor_plugins.c index 818530c84..1bbb4c102 100644 --- a/src/transport/transport_api_monitor_plugins.c +++ b/src/transport/transport_api_monitor_plugins.c @@ -296,6 +296,17 @@ response_processor (void *cls, reconnect_plugin_ctx (pm); return; } + if ( (GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_SYNC == ntohs (msg->type)) && + (sizeof (struct GNUNET_MessageHeader) == ntohs (msg->size)) ) + { + /* we are in sync */ + pm->cb (pm->cb_cls, + NULL, + NULL, + NULL); + return; + } + if ( (GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_EVENT != ntohs (msg->type)) || (sizeof (struct TransportPluginMonitorMessage) > ntohs (msg->size)) ) { -- cgit v1.2.3