diff --git a/streamlit_webrtc/process.py b/streamlit_webrtc/process.py index c379841f..07c1be4b 100644 --- a/streamlit_webrtc/process.py +++ b/streamlit_webrtc/process.py @@ -188,7 +188,7 @@ def _worker_thread(self): done_idx = tasks.index(task) old_tasks = tasks[:done_idx] for old_task in old_tasks: - logger.info("Cancel an old task %s", task) + logger.info("Cancel an old task %s", old_task) old_task.cancel() tasks = [t for t in tasks if not t.done()]