From ee873d283ceb3d4aae3479e3db67efb133d320b5 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 25 Oct 2020 16:20:21 +0300 Subject: - massive update in roadrunner 2.0 abstractions --- plugins/rpc/rpc.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/rpc') diff --git a/plugins/rpc/rpc.go b/plugins/rpc/rpc.go index 294eeb7a..ad19df17 100644 --- a/plugins/rpc/rpc.go +++ b/plugins/rpc/rpc.go @@ -74,7 +74,10 @@ func (s *Service) Serve() chan error { select { case <-s.close: // log error - errCh <- ln.Close() + err := ln.Close() + if err != nil { + errCh <- errors.E(errors.Op("close RPC socket"), err) + } return default: conn, err := ln.Accept() -- cgit v1.2.3