Fix a ResourceWarning for an unclosed socket.

This commit is contained in:
Brian Curtin 2010-10-31 04:40:53 +00:00
parent f53a626073
commit 6ff2a7d121
1 changed files with 1 additions and 0 deletions

View File

@ -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):