[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r15569 - gnunet/src/topology
From: |
gnunet |
Subject: |
[GNUnet-SVN] r15569 - gnunet/src/topology |
Date: |
Tue, 14 Jun 2011 13:47:10 +0200 |
Author: grothoff
Date: 2011-06-14 13:47:09 +0200 (Tue, 14 Jun 2011)
New Revision: 15569
Modified:
gnunet/src/topology/gnunet-daemon-topology.c
Log:
fixing 1691
Modified: gnunet/src/topology/gnunet-daemon-topology.c
===================================================================
--- gnunet/src/topology/gnunet-daemon-topology.c 2011-06-14 11:42:07 UTC
(rev 15568)
+++ gnunet/src/topology/gnunet-daemon-topology.c 2011-06-14 11:47:09 UTC
(rev 15569)
@@ -615,6 +615,7 @@
struct GNUNET_TIME_Relative delay;
pl->hello_delay_task = GNUNET_SCHEDULER_NO_TASK;
+ GNUNET_assert (GNUNET_YES == pl->is_connected);
if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
return; /* we're out of here */
if (pl->hello_req != NULL)
@@ -817,6 +818,16 @@
}
pos->is_connected = GNUNET_NO;
connection_count--;
+ if (NULL != pos->hello_req)
+ {
+ GNUNET_CORE_notify_transmit_ready_cancel (pos->hello_req);
+ pos->hello_req = NULL;
+ }
+ if (GNUNET_SCHEDULER_NO_TASK != pos->hello_delay_task)
+ {
+ GNUNET_SCHEDULER_cancel (pos->hello_delay_task);
+ pos->hello_delay_tas k = GNUNET_SCHEDULER_NO_TASK;
+ }
GNUNET_STATISTICS_set (stats,
gettext_noop ("# peers connected"),
connection_count,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r15569 - gnunet/src/topology,
gnunet <=