loop: fix unschedule

This commit is contained in:
Jan Pochyla 2017-10-10 11:49:04 +02:00
parent 01ba81f041
commit 3483c149a5
1 changed files with 2 additions and 2 deletions

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