summaryrefslogtreecommitdiff
path: root/src/or/scheduler_kist.c
diff options
context:
space:
mode:
authorMatt Traudt <sirmatt@ksu.edu>2017-10-03 16:48:35 -0400
committerNick Mathewson <nickm@torproject.org>2017-11-02 10:30:33 -0400
commit52050bb2c6b498c05c7ec54947deff5f662db34e (patch)
tree8e209eb5aa12f6505fbe99c8d398e90445fec6d1 /src/or/scheduler_kist.c
parent3931a6f264355d7fe017219f76bd5bec1d8bcbd8 (diff)
downloadtor-52050bb2c6b498c05c7ec54947deff5f662db34e.tar.gz
tor-52050bb2c6b498c05c7ec54947deff5f662db34e.zip
sched: Add another SCHED_BUG() callsite
Diffstat (limited to 'src/or/scheduler_kist.c')
-rw-r--r--src/or/scheduler_kist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/scheduler_kist.c b/src/or/scheduler_kist.c
index ea6910c702..1bc92f249f 100644
--- a/src/or/scheduler_kist.c
+++ b/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.
*/