diff --git a/cheroot/workers/threadpool.py b/cheroot/workers/threadpool.py index 915934ccea..57e6588dd6 100644 --- a/cheroot/workers/threadpool.py +++ b/cheroot/workers/threadpool.py @@ -320,7 +320,7 @@ def _clear_threads(self): return ( thread for thread in threads - if thread is not threading.currentThread() + if thread is not threading.current_thread() ) @property