[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18072 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18072 - gnunet/src/transport |
Date: |
Wed, 9 Nov 2011 15:28:05 +0100 |
Author: grothoff
Date: 2011-11-09 15:28:05 +0100 (Wed, 09 Nov 2011)
New Revision: 18072
Modified:
gnunet/src/transport/plugin_transport_udp.c
Log:
cleanup
Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2011-11-09 13:04:35 UTC (rev
18071)
+++ gnunet/src/transport/plugin_transport_udp.c 2011-11-09 14:28:05 UTC (rev
18072)
@@ -341,7 +341,6 @@
*/
int broadcast;
-
/**
* Tokenizer for inbound messages.
*/
@@ -515,6 +514,9 @@
{
struct Session *peer_session = value;
+ GNUNET_assert (GNUNET_YES ==
+ GNUNET_CONTAINER_multihashmap_remove
(peer_session->plugin->sessions,
+
&peer_session->target.hashPubKey, peer_session));
if (peer_session->frag != NULL)
GNUNET_FRAGMENT_context_destroy (peer_session->frag);
if (GNUNET_SCHEDULER_NO_TASK != peer_session->delayed_cont_task)
@@ -523,6 +525,7 @@
return GNUNET_OK;
}
+
/**
* Destroy a session, plugin is being unloaded.
*
@@ -540,11 +543,12 @@
GNUNET_SCHEDULER_cancel (s->invalidation_task);
if (GNUNET_SCHEDULER_NO_TASK != s->delayed_cont_task)
GNUNET_SCHEDULER_cancel (s->delayed_cont_task);
- GNUNET_CONTAINER_multihashmap_remove(s->plugin->inbound_sessions,
&s->target.hashPubKey, s);
+ GNUNET_CONTAINER_multihashmap_remove (s->plugin->inbound_sessions,
&s->target.hashPubKey, s);
GNUNET_free (s);
return GNUNET_OK;
}
+
/**
* Disconnect from a remote node. Clean up session if we have one for this
peer
*
@@ -569,9 +573,6 @@
GNUNET_CONTAINER_multihashmap_get_multiple (plugin->inbound_sessions,
&target->hashPubKey,
&destroy_inbound_session, NULL);
- GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "sendto");
-
-
plugin->last_expected_delay = GNUNET_FRAGMENT_context_destroy
(session->frag);
if (GNUNET_SCHEDULER_NO_TASK != session->delayed_cont_task)
GNUNET_SCHEDULER_cancel (session->delayed_cont_task);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18072 - gnunet/src/transport,
gnunet <=