Don't panic on clean shutdown

This commit is contained in:
Jakob Borg committed 2015-10-20 15:59:37 +02:00
1 parent b2da0120d6
commit aa42aafe33
2 files changed
+43 -23

No files matched your search

+2 -1
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)