diff options
-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() + } } |