diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-12 15:49:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-12 15:49:57 +0000 |
commit | 25d2cf2ca1882482d535c8ad0d879b9846e12ea2 (patch) | |
tree | cbc6313736a1d1941559f5b5c922cdd1db8c4386 /src/transport/plugin_transport_tcp.c | |
parent | 63d15aa9d1ea50933ff34fc42916024a5d3196bf (diff) | |
download | gnunet-25d2cf2ca1882482d535c8ad0d879b9846e12ea2.tar.gz gnunet-25d2cf2ca1882482d535c8ad0d879b9846e12ea2.zip |
finishing neighbours
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index e796dacf4..2c20ba35e 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -834,6 +834,9 @@ disconnect_session (struct Session *session) | |||
834 | (session->transmit_handle); | 834 | (session->transmit_handle); |
835 | session->transmit_handle = NULL; | 835 | session->transmit_handle = NULL; |
836 | } | 836 | } |
837 | session->plugin->env->session_end (session->plugin->env->cls, | ||
838 | &session->target, | ||
839 | session); | ||
837 | while (NULL != (pm = session->pending_messages_head)) | 840 | while (NULL != (pm = session->pending_messages_head)) |
838 | { | 841 | { |
839 | #if DEBUG_TCP | 842 | #if DEBUG_TCP |
@@ -878,9 +881,6 @@ disconnect_session (struct Session *session) | |||
878 | -1, | 881 | -1, |
879 | GNUNET_NO); | 882 | GNUNET_NO); |
880 | GNUNET_free_non_null (session->connect_addr); | 883 | GNUNET_free_non_null (session->connect_addr); |
881 | session->plugin->env->session_end (session->plugin->env->cls, | ||
882 | &session->target, | ||
883 | session); | ||
884 | GNUNET_assert (NULL == session->transmit_handle); | 884 | GNUNET_assert (NULL == session->transmit_handle); |
885 | GNUNET_free (session); | 885 | GNUNET_free (session); |
886 | } | 886 | } |