aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/python/route_guide
diff options
context:
space:
mode:
authorGravatar VcamX <vcamx3@gmail.com>2016-03-07 13:08:38 +0800
committerGravatar VcamX <vcamx3@gmail.com>2016-03-07 13:08:38 +0800
commit208fd6b339364f9677bbcdfc3bb955ca908fbe2e (patch)
treebd64e746d6ae84fc929bc82274499a9a12c5196d /examples/python/route_guide
parent72724bce84b4bc027ce8dd3f7508b9216788434b (diff)
Set grace=0 to server stop in route_guide
Fix #5619
Diffstat (limited to 'examples/python/route_guide')
-rw-r--r--examples/python/route_guide/route_guide_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/route_guide/route_guide_server.py b/examples/python/route_guide/route_guide_server.py
index f23b98bf36..24f948c42c 100644
--- a/examples/python/route_guide/route_guide_server.py
+++ b/examples/python/route_guide/route_guide_server.py
@@ -128,7 +128,7 @@ def serve():
while True:
time.sleep(_ONE_DAY_IN_SECONDS)
except KeyboardInterrupt:
- server.stop()
+ server.stop(0)
if __name__ == '__main__':
serve()