Skip to content

Commit ea81dd6

Browse files
authored
Merge pull request kubernetes#133309 from macsko/fix_race_with_closing_api_dispatcher
Fix potential race in closing API dispatcher
2 parents a4465de + dbfeb9c commit ea81dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/scheduler/scheduler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ func (sched *Scheduler) Run(ctx context.Context) {
526526
sched.SchedulingQueue.Run(logger)
527527

528528
if sched.APIDispatcher != nil {
529-
go sched.APIDispatcher.Run(logger)
529+
sched.APIDispatcher.Run(logger)
530530
}
531531

532532
// We need to start scheduleOne loop in a dedicated goroutine,

0 commit comments

Comments
 (0)