mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-21 18:32:04 +08:00
shutdown the socket when asked
This commit is contained in:
@@ -1677,6 +1677,11 @@ class BlockstackdRPCServer( threading.Thread, object ):
|
||||
Stop serving. Also stops the thread.
|
||||
"""
|
||||
if self.rpc_server is not None:
|
||||
try:
|
||||
self.rpc_server.socket.shutdown(socket.SHUT_RDWR)
|
||||
except:
|
||||
log.warning("Failed to shut down server socket")
|
||||
|
||||
self.rpc_server.shutdown()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user