Updated scheduler task handling

This commit is contained in:
Trial97
2020-11-18 13:15:39 +02:00
committed by Dan Christian Bogos
parent b90ff99846
commit b0208c29f0
2 changed files with 30 additions and 18 deletions

View File

@@ -305,8 +305,8 @@ func (srvMngr *ServiceManager) ShutdownServices(timeout time.Duration) {
}
c := make(chan struct{})
go func() {
defer close(c)
wg.Wait()
close(c)
}()
select {
case <-c: