summaryrefslogtreecommitdiff
path: root/service/rpc/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/rpc/service.go')
-rw-r--r--service/rpc/service.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/rpc/service.go b/service/rpc/service.go
index e1147754..c301e6bb 100644
--- a/service/rpc/service.go
+++ b/service/rpc/service.go
@@ -60,10 +60,11 @@ func (s *Service) Serve() error {
for {
select {
case <-s.stop:
- break
+ return
default:
conn, err := ln.Accept()
if err != nil {
+
continue
}