Update server.go
Fixed a bug that caused a panic when sending multiple signals: signals are no longer sent on the server.signals channel after it has closed.
This commit is contained in:
parent
d42a22f446
commit
bd29bac716
1 changed files with 1 additions and 0 deletions
|
@ -108,6 +108,7 @@ func (server *Server) Close() {
|
|||
server.routinesPool.Stop()
|
||||
close(server.configurationChan)
|
||||
close(server.configurationValidatedChan)
|
||||
signal.Stop(server.signals)
|
||||
close(server.signals)
|
||||
close(server.stopChan)
|
||||
server.loggerMiddleware.Close()
|
||||
|
|
Loading…
Reference in a new issue