Skip to content
Snippets Groups Projects
Commit 77ebadc6 authored by Masood Malekghassemi's avatar Masood Malekghassemi
Browse files

Add grace=0 to server stop in Python example

Fixes #4122
parent 118c0a0e
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ def serve(): ...@@ -50,7 +50,7 @@ def serve():
while True: while True:
time.sleep(_ONE_DAY_IN_SECONDS) time.sleep(_ONE_DAY_IN_SECONDS)
except KeyboardInterrupt: except KeyboardInterrupt:
server.stop() server.stop(0)
if __name__ == '__main__': if __name__ == '__main__':
serve() serve()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment