summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-11 22:00:39 +0300
committerWolfy-J <[email protected]>2018-06-11 22:00:39 +0300
commitfe104ea854572c7033a471e0f5dd0749d8180a70 (patch)
tree266f954261580c4dd62b262557ccf61209d888c1 /service
parentbc81f923cba74e2acad183c6828b40f02c25d16c (diff)
no library dependency
Diffstat (limited to 'service')
-rw-r--r--service/http/service.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/service/http/service.go b/service/http/service.go
index aa3d0011..4187e55a 100644
--- a/service/http/service.go
+++ b/service/http/service.go
@@ -113,11 +113,11 @@ func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
func (s *Service) listener(event int, ctx interface{}) {
- if event == roadrunner.EventServerFailure {
- s.Stop()
- }
-
for _, l := range s.listeners {
l(event, ctx)
}
+
+ if event == roadrunner.EventServerFailure {
+ s.Stop()
+ }
}