jsonrpcserver icon indicating copy to clipboard operation
jsonrpcserver copied to clipboard

Always shut down server when using serve()

Open bcb opened this issue 1 year ago • 0 comments

The server only shuts down when exiting with ctrl-c (keyboard interrupt).

Add a try block to always shut down the server when exiting other ways. e.g sys.exit

bcb avatar May 23 '23 00:05 bcb