do not notify transport multiple time for a session
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 27 Jun 2014 10:27:11 +0000 (10:27 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 27 Jun 2014 10:27:11 +0000 (10:27 +0000)
src/transport/plugin_transport_http_server.c

index 30a209a6bfe2c29cd9e23712dda71978a4b9049e..6a6f28e8bc6bdffcea2bb94072c02b3e814257ca 100644 (file)
@@ -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);