summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rpc/service.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpc/service.go b/rpc/service.go
index 71f6fc41..c07c70b9 100644
--- a/rpc/service.go
+++ b/rpc/service.go
@@ -69,6 +69,11 @@ func (s *Service) Serve() error {
}()
<-s.stop
+
+ s.mu.Lock()
+ s.serving = false
+ s.mu.Unlock()
+
return nil
}