Added lock acquisition around handler removal from logger

This commit is contained in:
Vinay Sajip 2005-09-16 10:33:40 +00:00
parent 9bda1d6f64
commit 116f16e4ab

View File

@ -1090,7 +1090,11 @@ class Logger(Filterer):
"""
if hdlr in self.handlers:
#hdlr.close()
self.handlers.remove(hdlr)
hdlr.acquire()
try:
self.handlers.remove(hdlr)
finally:
hdlr.release()
def callHandlers(self, record):
"""