From c7243dd5a8f2d94c1c357bca242032777c33ac14 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Thu, 18 Oct 2018 09:17:56 +0300 Subject: stopping --- service/http/service.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'service/http') 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 { -- cgit v1.2.3