Avoid goroutine leak in server
This commit is contained in:
parent
e4bb506ace
commit
74ace58ae1
4 changed files with 23 additions and 15 deletions
|
@ -248,7 +248,9 @@ func (s *Server) Start() {
|
|||
s.listenConfigurations(stop)
|
||||
})
|
||||
s.startProvider()
|
||||
go s.listenSignals()
|
||||
s.routinesPool.Go(func(stop chan bool) {
|
||||
s.listenSignals(stop)
|
||||
})
|
||||
}
|
||||
|
||||
// StartWithContext starts the server and Stop/Close it when context is Done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue