diff --git a/src/tribler/core/utilities/slow_coro_detection/watching_thread.py b/src/tribler/core/utilities/slow_coro_detection/watching_thread.py index f6a676911a1..5998f96e095 100644 --- a/src/tribler/core/utilities/slow_coro_detection/watching_thread.py +++ b/src/tribler/core/utilities/slow_coro_detection/watching_thread.py @@ -71,7 +71,7 @@ def run(self): if handle is not None: duration = time.time() - start_time if duration > SLOW_CORO_DURATION_THRESHOLD: - _report_freeze(current.handle, duration, first_report=prev_reported_handle is not handle) + _report_freeze(handle, duration, first_report=prev_reported_handle is not handle) new_reported_handle = handle prev_reported_handle = new_reported_handle