Commit 6ff2a7d1 authored by Brian Curtin's avatar Brian Curtin

Fix a ResourceWarning for an unclosed socket.

parent f53a6260
......@@ -888,6 +888,7 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT):
logging._acquireLock()
abort = self.abort
logging._releaseLock()
self.socket.close()
class Server(threading.Thread):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment