From 97702c69b03b19a8a6f867e56f716ce984550fa0 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 4 Dec 2017 14:48:15 -0500 Subject: sched: Set channel scheduler state to IDLE when not opened In the KIST main loop, if the channel happens to be not opened, set its state to IDLE so we can release it properly later on. Prior to this fix, the channel was in PENDING state, removed from the channel pending list and then kept in that state because it is not opened. This bug was introduced in commit dcabf801e52a83e2c3cc23ccc1fa906582a927d6 for which we made the scheduler loop not consider unopened channel. This has no consequences on tor except for an annoying but harmless BUG() warning. Fixes #24502 Signed-off-by: David Goulet --- changes/bug24502 | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 changes/bug24502 (limited to 'changes') diff --git a/changes/bug24502 b/changes/bug24502 new file mode 100644 index 0000000000..3fa6fb58dd --- /dev/null +++ b/changes/bug24502 @@ -0,0 +1,4 @@ + o Minor bugfixes (scheduler): + - Properly set the scheduler state of an unopened channel in the KIST + scheduler main loop. This prevents a harmless but annoying log warning. + Fixes bug 24502; bugfix on 0.3.2.4-alpha. -- cgit v1.2.3-54-g00ecf