1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

loop: fix unschedule

This commit is contained in:
Jan Pochyla 2017-10-10 11:49:04 +02:00
parent 01ba81f041
commit 3483c149a5

View File

@ -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