Skip to content

Commit

Permalink
#13 Use correct functions to shutdown server.
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeTux committed Nov 16, 2015
1 parent 834151f commit 4f33869
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ Routing Modbus requests is easy:
try:
app.serve_forever()
finally:
app.stop()
app.shutdown()
app.server_close()
Features
--------
Expand Down
3 changes: 2 additions & 1 deletion scripts/examples/simple_data_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ def write_data_store(slave_id, address, value):
try:
app.serve_forever()
finally:
app.stop()
app.shutdown()
app.server_close()

0 comments on commit 4f33869

Please sign in to comment.