Do not close pod sync, use context cancel instead. (#402)
Closing the channel is racey and can lead to a panic on exit. Instead rely on context cancellation to know if workers should exit.
This commit is contained in:
@@ -95,7 +95,6 @@ This allows users to schedule kubernetes workloads on nodes that aren't running
|
||||
signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
|
||||
go func() {
|
||||
<-sig
|
||||
f.Stop()
|
||||
cancel()
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user