explodinglabs / jsonrpcserver

Process incoming JSON-RPC requests in Python
MIT License
186 stars 40 forks source link

Always shut down server when using serve() #264

Closed bcb closed 2 months ago

bcb commented 1 year ago

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 commented 2 months ago

Fixed in version 6