mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix a ResourceWarning for an unclosed socket.
This commit is contained in:
parent
f53a626073
commit
6ff2a7d121
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue