[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11394 - gnunet/src/hostlist
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11394 - gnunet/src/hostlist |
Date: |
Mon, 17 May 2010 10:54:38 +0200 |
Author: wachs
Date: 2010-05-17 10:54:38 +0200 (Mon, 17 May 2010)
New Revision: 11394
Modified:
gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
Log:
Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c 2010-05-17
08:38:25 UTC (rev 11393)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c 2010-05-17
08:54:38 UTC (rev 11394)
@@ -109,11 +109,12 @@
GNUNET_SCHEDULER_cancel (sched, check_task);
check_task = GNUNET_SCHEDULER_NO_TASK;
}
- if (NULL != download_stats)
+
+ if ((NULL != learn_peer.stats) && (NULL != download_stats))
GNUNET_STATISTICS_get_cancel (download_stats);
- if (NULL != urisrecv_stat)
+ if ((NULL != learn_peer.stats) && (NULL != urisrecv_stat))
GNUNET_STATISTICS_get_cancel (urisrecv_stat);
- if (NULL != advsent_stat)
+ if ((NULL != adv_peer.stats) && (NULL != advsent_stat))
GNUNET_STATISTICS_get_cancel (advsent_stat);
if ( NULL != current_adv_uri ) GNUNET_free (current_adv_uri);
@@ -167,7 +168,6 @@
uint64_t value,
int is_persistent)
{
-
download_stats = NULL;
if ( ((struct PeerContext *) cls == &learn_peer) && (value == 2) &&
(learned_hostlist_downloaded == GNUNET_NO) )
{
@@ -413,8 +413,6 @@
sched = s;
-
-
check_task = GNUNET_SCHEDULER_add_delayed (sched,
CHECK_INTERVALL,
&check_statistics,
@@ -426,7 +424,6 @@
TIMEOUT,
&timeout_error,
NULL);
-
}
static int
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11394 - gnunet/src/hostlist,
gnunet <=