Commit 3eac591a authored by Vinay Sajip's avatar Vinay Sajip

Issue #9947: logging: Fixed locking bug in stopListening.

parent 546885ea
......@@ -895,8 +895,10 @@ def stopListening():
Stop the listening server which was created with a call to listen().
"""
global _listener
if _listener:
logging._acquireLock()
_listener.abort = 1
_listener = None
logging._acquireLock()
try:
if _listener:
_listener.abort = 1
_listener = None
finally:
logging._releaseLock()
......@@ -43,6 +43,8 @@ Core and Builtins
Library
-------
- Issue #9947: logging: Fixed locking bug in stopListening.
- Issue #9945: logging: Fixed locking bugs in addHandler/removeHandler.
- Issue #9936: Fixed executable lines' search in the trace module.
......
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