]> granicus.if.org Git - python/commitdiff
Fix a ResourceWarning for an unclosed socket.
authorBrian Curtin <brian.curtin@gmail.com>
Sun, 31 Oct 2010 04:40:53 +0000 (04:40 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Sun, 31 Oct 2010 04:40:53 +0000 (04:40 +0000)
Lib/logging/config.py

index 60744a0b4766eb13f158dcce82713149fb8aa095..12c1c13b18f9be070e07cf5169897faa45ad5243 100644 (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):