diff options
author | Wolfy-J <[email protected]> | 2019-05-19 13:17:22 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-19 13:17:22 +0300 |
commit | 8b3967e595b410be302602aeef1da8ce2b3feb1c (patch) | |
tree | 2f840ff52eed68c43aa4070ac2b8a9a38c57995c /service/container.go | |
parent | d8e9f83f0fb88e4b5b6432e1f82f34e4243e4302 (diff) |
better contrainer stop
Diffstat (limited to 'service/container.go')
-rw-r--r-- | service/container.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/service/container.go b/service/container.go index 1cf4a5f6..1e2e1d51 100644 --- a/service/container.go +++ b/service/container.go @@ -202,6 +202,7 @@ func (c *container) Serve() error { func (c *container) Stop() { for _, e := range c.services { if e.hasStatus(StatusServing) { + e.setStatus(StatusStopping) e.svc.(Service).Stop() e.setStatus(StatusStopped) |