From fe104ea854572c7033a471e0f5dd0749d8180a70 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Mon, 11 Jun 2018 22:00:39 +0300 Subject: no library dependency --- service/http/service.go | 8 ++++---- 1 file 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() + } } -- cgit v1.2.3