projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ac9e22
)
fix for mantis bug 0002154:
author
Matthias Wachs
<wachs@net.in.tum.de>
Thu, 23 Feb 2012 10:28:25 +0000
(10:28 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Thu, 23 Feb 2012 10:28:25 +0000
(10:28 +0000)
change order of calls:
- discard unsend messages
- call transmit send continuation
- call session_end
src/transport/plugin_transport_udp.c
patch
|
blob
|
history
diff --git
a/src/transport/plugin_transport_udp.c
b/src/transport/plugin_transport_udp.c
index 8b557c52c7c7ae959f03cfe0b06b32f730b4b237..ccd9d07eead2396e2fe67b784c15c447a1ae6095 100644
(file)
--- 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,