summaryrefslogtreecommitdiff
path: root/service/rpc
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-23 20:21:12 +0300
committerWolfy-J <[email protected]>2018-06-23 20:21:12 +0300
commit88b3416e0cb795873787014906b48d184f8fe78a (patch)
tree3fdebb92ef36277a43b9303703d8f22aa8edf9dd /service/rpc
parent008a42fc6138e74766cdf9011a8dfc60df71b4a0 (diff)
better shutdown
Diffstat (limited to 'service/rpc')
-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
}