diff options
author | Wolfy-J <[email protected]> | 2018-06-11 22:00:39 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-11 22:00:39 +0300 |
commit | fe104ea854572c7033a471e0f5dd0749d8180a70 (patch) | |
tree | 266f954261580c4dd62b262557ccf61209d888c1 /service/http/service.go | |
parent | bc81f923cba74e2acad183c6828b40f02c25d16c (diff) |
no library dependency
Diffstat (limited to 'service/http/service.go')
-rw-r--r-- | service/http/service.go | 8 |
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() + } } |