aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-05-25 21:40:07 +0000
committerChristian Grothoff <christian@grothoff.org>2011-05-25 21:40:07 +0000
commit79ae099456caba64b0599b7c6e2b2b86bcc6571f (patch)
tree93e92802426219353790c40031afd32e516470f4 /src/util
parent8c8e90206d016c8473ac5ce4863f01d5bfc50289 (diff)
downloadgnunet-79ae099456caba64b0599b7c6e2b2b86bcc6571f.tar.gz
gnunet-79ae099456caba64b0599b7c6e2b2b86bcc6571f.zip
more extensive error reporting
Diffstat (limited to 'src/util')
-rw-r--r--src/util/scheduler.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c
index 2f300f4bd..81f7d8cf0 100644
--- a/src/util/scheduler.c
+++ b/src/util/scheduler.c
@@ -911,7 +911,13 @@ GNUNET_SCHEDULER_cancel (GNUNET_SCHEDULER_TaskIdentifier task)
911 while (t == NULL) 911 while (t == NULL)
912 { 912 {
913 p++; 913 p++;
914 GNUNET_assert (p < GNUNET_SCHEDULER_PRIORITY_COUNT); 914 if (p >= GNUNET_SCHEDULER_PRIORITY_COUNT)
915 {
916 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
917 _("Attempt to cancel dead task %llu!\n"),
918 (unsigned long long) task);
919 GNUNET_assert (0);
920 }
915 prev = NULL; 921 prev = NULL;
916 t = ready[p]; 922 t = ready[p];
917 while (t != NULL) 923 while (t != NULL)