[V3 RPC] Handle shutdown gracefully (#1071)

This commit is contained in:
Will 2017-11-01 21:40:44 -04:00 committed by GitHub
parent edabd07719
commit 1490b0dcbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,4 +79,5 @@ def add_method(prefix, method):
def clean_up():
_rpc_server.close()
if _rpc_server is not None:
_rpc_server.close()