Fix bug that shouldn't exist
This commit is contained in:
@@ -57,6 +57,11 @@ func start() error {
|
||||
}
|
||||
|
||||
func stop() error {
|
||||
close(shutdownSignal)
|
||||
select {
|
||||
case <-shutdownSignal:
|
||||
// already closed
|
||||
default:
|
||||
close(shutdownSignal)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user