From: Matthias Wachs Date: Fri, 27 Jun 2014 10:27:11 +0000 (+0000) Subject: do not notify transport multiple time for a session X-Git-Tag: initial-import-from-subversion-38251~3550 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6947ab52930dff46329a1636a697ba3669969fc7;p=oweals%2Fgnunet.git do not notify transport multiple time for a session --- diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 30a209a6b..6a6f28e8b 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c @@ -1479,8 +1479,9 @@ server_lookup_connection (struct HTTP_Server_Plugin *plugin, if (direction == _RECEIVE) s->server_recv = sc; - if ( (NULL != s->server_send) && - (NULL != s->server_recv) ) + if ((GNUNET_NO == s->known_to_service) && + (NULL != s->server_send) && + (NULL != s->server_recv) ) { s->known_to_service = GNUNET_YES; plugin->env->session_start (NULL, s->address ,s, NULL, 0);