Explorar o código

sched: Add another SCHED_BUG() callsite

Matt Traudt %!s(int64=6) %!d(string=hai) anos
pai
achega
52050bb2c6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/scheduler_kist.c

+ 1 - 1
src/or/scheduler_kist.c

@@ -572,7 +572,7 @@ kist_scheduler_run(void)
     /* get best channel */
     chan = smartlist_pqueue_pop(cp, scheduler_compare_channels,
                                 offsetof(channel_t, sched_heap_idx));
-    IF_BUG_ONCE(!chan) {
+    if (SCHED_BUG(!chan, NULL)) {
       /* Some-freaking-how a NULL got into the channels_pending. That should
        * never happen, but it should be harmless to ignore it and keep looping.
        */