summaryrefslogtreecommitdiff
path: root/service/http/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/service.go')
-rw-r--r--service/http/service.go2
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 {