add assertion for debugging
authorlurchi <lurchi@strangeplace.net>
Tue, 23 Jan 2018 07:14:13 +0000 (08:14 +0100)
committerlurchi <lurchi@strangeplace.net>
Tue, 23 Jan 2018 07:14:13 +0000 (08:14 +0100)
src/util/scheduler.c

index 6a1b1a22d83b5d327576487070ec92fa1ccaf0c9..0fb69940f26eeb5a795cf6509d7782c3e3a85ffd 100644 (file)
@@ -1944,6 +1944,7 @@ GNUNET_SCHEDULER_run_from_driver (struct GNUNET_SCHEDULER_Handle *sh)
   {
     LOG (GNUNET_ERROR_TYPE_ERROR,
          "GNUNET_SCHEDULER_run_from_driver was called, but no tasks are ready!\n");
+    GNUNET_assert (0);
     return GNUNET_SYSERR;
   }