From 3483c149a59ce013031426c5c267f8dab549ee59 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Tue, 10 Oct 2017 11:49:04 +0200 Subject: [PATCH] loop: fix unschedule --- src/trezor/loop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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