summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/scheduler.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/scheduler.c b/src/or/scheduler.c
index aaf991407a..39427b7827 100644
--- a/src/or/scheduler.c
+++ b/src/or/scheduler.c
@@ -547,11 +547,11 @@ scheduler_release_channel,(channel_t *chan))
offsetof(channel_t, sched_heap_idx),
chan);
}
- if (the_scheduler->on_channel_free) {
- the_scheduler->on_channel_free(chan);
- }
}
+ if (the_scheduler->on_channel_free) {
+ the_scheduler->on_channel_free(chan);
+ }
chan->scheduler_state = SCHED_CHAN_IDLE;
}