summaryrefslogtreecommitdiff
path: root/service/http/service.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-12 19:06:01 +0300
committerWolfy-J <[email protected]>2018-06-12 19:06:01 +0300
commitf8d8e9a55d31c6ee98b1f292e49b31b474883a4f (patch)
treea931e304869d1076b5ca6bd793800d701406331a /service/http/service.go
parentd6aa174084bff228ab36d560252e2d11d0d6cc15 (diff)
tests!
Diffstat (limited to 'service/http/service.go')
-rw-r--r--service/http/service.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/service/http/service.go b/service/http/service.go
index 4187e55a..40eec579 100644
--- a/service/http/service.go
+++ b/service/http/service.go
@@ -118,6 +118,9 @@ func (s *Service) listener(event int, ctx interface{}) {
}
if event == roadrunner.EventServerFailure {
- s.Stop()
+ // attempting rr server restart
+ if err := s.rr.Start(); err != nil {
+ s.Stop()
+ }
}
}