Fix a ResourceWarning for an unclosed socket.
This commit is contained in:
parent
f53a626073
commit
6ff2a7d121
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in New Issue