Don't panic on clean shutdown

This commit is contained in:
Jakob Borg
2015-10-20 15:14:05 +02:00
parent b2da0120d6
commit aa42aafe33
2 changed files with 43 additions and 23 deletions

View File

@@ -74,7 +74,8 @@ func NewSvc(cfg *config.Wrapper, tlsCfg *tls.Config) *Svc {
}
eventBc := &eventBroadcaster{
svc: svc,
svc: svc,
stop: make(chan struct{}),
}
svc.Add(receiver)