summaryrefslogtreecommitdiff
path: root/src/transport/transport_api_monitor_plugins.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-11-23 19:24:08 +0000
committerChristian Grothoff <christian@grothoff.org>2014-11-23 19:24:08 +0000
commite5d9d0d24bc32dcebcd5d2f86ca5cca579bc5dbb (patch)
tree892b7997407e9705e7a4072ffe8397f03c40adb5 /src/transport/transport_api_monitor_plugins.c
parentb3db692279aec4f8e016ee3ebd83a18ce182bd35 (diff)
-fix sync signalling for plugin monitoring
Diffstat (limited to 'src/transport/transport_api_monitor_plugins.c')
-rw-r--r--src/transport/transport_api_monitor_plugins.c11
1 files changed, 11 insertions, 0 deletions
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)) )
{