summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-10-18 09:17:56 +0300
committerWolfy-J <[email protected]>2018-10-18 09:17:56 +0300
commitc7243dd5a8f2d94c1c357bca242032777c33ac14 (patch)
tree59e5c1c5606c055de714e843361936c8441490db
parent1e72bacd8cc9b2e6f41f31846076ac53712a2568 (diff)
stopping
-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 {