[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r6915 - GNUnet/src/applications/fs/fsui
From: |
gnunet |
Subject: |
[GNUnet-SVN] r6915 - GNUnet/src/applications/fs/fsui |
Date: |
Tue, 27 May 2008 20:25:57 -0600 (MDT) |
Author: grothoff
Date: 2008-05-27 20:25:57 -0600 (Tue, 27 May 2008)
New Revision: 6915
Modified:
GNUnet/src/applications/fs/fsui/fsui.c
GNUnet/src/applications/fs/fsui/search.c
Log:
fix
Modified: GNUnet/src/applications/fs/fsui/fsui.c
===================================================================
--- GNUnet/src/applications/fs/fsui/fsui.c 2008-05-27 12:49:14 UTC (rev
6914)
+++ GNUnet/src/applications/fs/fsui/fsui.c 2008-05-28 02:25:57 UTC (rev
6915)
@@ -186,8 +186,11 @@
GNUNET_YES,
&test_download_progress,
srl);
- srl->test_download_start_time = now;
- ctx->active_probes++;
+ if (srl->test_download != NULL)
+ {
+ srl->test_download_start_time = now;
+ ctx->active_probes++;
+ }
}
}
Modified: GNUnet/src/applications/fs/fsui/search.c
===================================================================
--- GNUnet/src/applications/fs/fsui/search.c 2008-05-27 12:49:14 UTC (rev
6914)
+++ GNUnet/src/applications/fs/fsui/search.c 2008-05-28 02:25:57 UTC (rev
6915)
@@ -393,6 +393,7 @@
{
GNUNET_ECRS_file_download_partial_stop (srl->test_download);
srl->test_download = NULL;
+ ctx->active_probes--;
}
srl = srl->next;
}
@@ -441,6 +442,7 @@
{
GNUNET_ECRS_file_download_partial_stop (srl->test_download);
srl->test_download = NULL;
+ ctx->active_probes--;
}
srl = srl->next;
}
@@ -558,7 +560,10 @@
GNUNET_ECRS_uri_destroy (srl->fi.uri);
GNUNET_ECRS_meta_data_destroy (srl->fi.meta);
if (srl->test_download != NULL)
- GNUNET_ECRS_file_download_partial_stop (srl->test_download);
+ {
+ GNUNET_ECRS_file_download_partial_stop (srl->test_download);
+ ctx->active_probes--;
+ }
GNUNET_free (srl);
}
GNUNET_mutex_destroy (pos->lock);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r6915 - GNUnet/src/applications/fs/fsui,
gnunet <=