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:
Jsewill 2016-07-14 03:22:18 -05:00 committed by GitHub
parent d42a22f446
commit bd29bac716

View file

@ -108,6 +108,7 @@ func (server *Server) Close() {
server.routinesPool.Stop() server.routinesPool.Stop()
close(server.configurationChan) close(server.configurationChan)
close(server.configurationValidatedChan) close(server.configurationValidatedChan)
signal.Stop(server.signals)
close(server.signals) close(server.signals)
close(server.stopChan) close(server.stopChan)
server.loggerMiddleware.Close() server.loggerMiddleware.Close()