diff --git a/bqskit/runtime/detached.py b/bqskit/runtime/detached.py index ea32afbd..616f9cf2 100644 --- a/bqskit/runtime/detached.py +++ b/bqskit/runtime/detached.py @@ -260,7 +260,7 @@ def handle_disconnect(self, conn: Connection) -> None: self.handle_cancel_comp_task(task_id) tasks_to_pop = [] - for (task, (tid, other_conn)) in self.tasks.items(): + for (task_id, (tid, other_connd)) in self.tasks.items(): if other_conn == conn: tasks_to_pop.append((task_id, tid))