diff --git a/src/trezor/loop.py b/src/trezor/loop.py index 69ea4784b7..412a4df022 100644 --- a/src/trezor/loop.py +++ b/src/trezor/loop.py @@ -46,9 +46,9 @@ def unschedule(task): queue_copy = utimeq.utimeq(_QUEUE_SIZE) while _queue: _queue.pop(task_entry) - t, v, d = task_entry + d, t, v = task_entry if t is not task: - queue_copy.push(t, v, d) + queue_copy.push(d, t, v) _queue = queue_copy