From 3e2cb84e3bba97f53930f88b4399a2b3e8c5cd1f Mon Sep 17 00:00:00 2001 From: muXxer Date: Wed, 15 May 2024 14:14:04 +0200 Subject: [PATCH] Shutdown the validator loops on scheduler shutdown --- .../engine/congestioncontrol/scheduler/drr/scheduler.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/protocol/engine/congestioncontrol/scheduler/drr/scheduler.go b/pkg/protocol/engine/congestioncontrol/scheduler/drr/scheduler.go index 114451d66..37fd2dd2d 100644 --- a/pkg/protocol/engine/congestioncontrol/scheduler/drr/scheduler.go +++ b/pkg/protocol/engine/congestioncontrol/scheduler/drr/scheduler.go @@ -388,6 +388,9 @@ loop: for { select { // on close, exit the loop + case <-s.shutdownSignal: + break loop + // on close, exit the loop case <-validatorQueue.shutdownSignal: break loop // when a block is pushed by this validator queue.