aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-06-27 10:27:11 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-06-27 10:27:11 +0000
commit6947ab52930dff46329a1636a697ba3669969fc7 (patch)
tree912c80f531ea5d88fe70b4c251457f1168fd3644 /src/transport
parenteb34c848fc08edc2fa31e43e4bf52e920d476d30 (diff)
downloadgnunet-6947ab52930dff46329a1636a697ba3669969fc7.tar.gz
gnunet-6947ab52930dff46329a1636a697ba3669969fc7.zip
do not notify transport multiple time for a session
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/plugin_transport_http_server.c5
1 files changed, 3 insertions, 2 deletions
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,
1479 if (direction == _RECEIVE) 1479 if (direction == _RECEIVE)
1480 s->server_recv = sc; 1480 s->server_recv = sc;
1481 1481
1482 if ( (NULL != s->server_send) && 1482 if ((GNUNET_NO == s->known_to_service) &&
1483 (NULL != s->server_recv) ) 1483 (NULL != s->server_send) &&
1484 (NULL != s->server_recv) )
1484 { 1485 {
1485 s->known_to_service = GNUNET_YES; 1486 s->known_to_service = GNUNET_YES;
1486 plugin->env->session_start (NULL, s->address ,s, NULL, 0); 1487 plugin->env->session_start (NULL, s->address ,s, NULL, 0);