From 6f82910681a10defdfd2c98fdb7b721cc7677109 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 23 Feb 2012 10:28:25 +0000 Subject: [PATCH] fix for mantis bug 0002154: change order of calls: - discard unsend messages - call transmit send continuation - call session_end --- src/transport/plugin_transport_udp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 8b557c52c..ccd9d07ee 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -541,7 +541,6 @@ disconnect_and_free_it (void *cls, const GNUNET_HashCode * key, void *value) GNUNET_i2s (&s->target), GNUNET_a2s (s->sock_addr, s->addrlen)); #endif - plugin->env->session_end (plugin->env->cls, &s->target, s); if (s->frag_ctx != NULL) { @@ -580,6 +579,8 @@ disconnect_and_free_it (void *cls, const GNUNET_HashCode * key, void *value) udpw = next; } + plugin->env->session_end (plugin->env->cls, &s->target, s); + GNUNET_assert (GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove (plugin->sessions, &s->target.hashPubKey, -- 2.25.1