summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-03-08 17:02:11 +0300
committerValery Piashchynski <[email protected]>2020-03-08 17:02:11 +0300
commitf6d017b3132e915edaafe947c09783b768611fee (patch)
treef95b5986d9d2b543f83cdcab488471d573612ff6 /service
parentec846d99cc218a2c99c2358920ab4595b4b5ea7c (diff)
fix golangci-lint issues
Diffstat (limited to 'service')
-rw-r--r--service/container.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/service/container.go b/service/container.go
index 18d3ec3b..85f63eeb 100644
--- a/service/container.go
+++ b/service/container.go
@@ -187,17 +187,18 @@ func (c *container) Serve() error {
}
}
- for {
- select {
- case fail := <-c.errc:
- if fail.err == errTempFix223 {
- return nil
- }
+ for fail := range c.errc {
+ if fail.err == errTempFix223 {
+ // if we call stop, then stop all plugins
+ break
+ } else {
c.log.Errorf("[%s]: %s", fail.name, fail.err)
c.Stop()
return fail.err
}
}
+
+ return nil
}
// Detach sends stop command to all running services.