diff options
author | Wolfy-J <[email protected]> | 2018-10-18 09:17:56 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-10-18 09:17:56 +0300 |
commit | c7243dd5a8f2d94c1c357bca242032777c33ac14 (patch) | |
tree | 59e5c1c5606c055de714e843361936c8441490db | |
parent | 1e72bacd8cc9b2e6f41f31846076ac53712a2568 (diff) |
stopping
-rw-r--r-- | service/http/service.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/http/service.go b/service/http/service.go index 1f999b8b..a7e8e44c 100644 --- a/service/http/service.go +++ b/service/http/service.go @@ -114,6 +114,8 @@ func (s *Service) Stop() { return } + atomic.StoreInt32(&s.stopping, 1) + s.mu.Lock() defer s.mu.Unlock() if s.http == nil { |