mirror of https://github.com/python/cpython
bpo-31235: Fix ResourceWarning in test_logging (#3147)
This commit is contained in:
parent
6966960468
commit
a7719e27b3
|
@ -797,6 +797,8 @@ if threading:
|
|||
"""
|
||||
self.close()
|
||||
self._thread.join(timeout)
|
||||
asyncore.close_all(map=self._map, ignore_all=True)
|
||||
|
||||
alive = self._thread.is_alive()
|
||||
self._thread = None
|
||||
if alive:
|
||||
|
|
Loading…
Reference in New Issue