Skip to content

Commit

Permalink
processor: Clear pending event on state change
Browse files Browse the repository at this point in the history
Reopen structure clears wakeup time on state change so remove it from
timer queue too.
  • Loading branch information
shramov committed Dec 11, 2024
1 parent 5aed4e7 commit 60227c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/processor/processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ void Processor::update(const Channel *c, tll_state_t s)

if (o->verbose)
_log.info("Object {} state {}", c->name(), tll_state_str(s));
if (o->reopen.pending())
pending_del(o->reopen.next, o);
o->on_state(s);
switch (s) {
case state::Opening:
Expand Down

0 comments on commit 60227c5

Please sign in to comment.