Skip to content

Commit

Permalink
fix(task): assert task found in custom_wakeup
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Sep 18, 2023
1 parent 9c5508e commit 34d1ab0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scheduler/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,12 +609,14 @@ impl BlockedTaskQueue {
);
}

break;
return;
}

first_task = false;
cursor.move_next();
}

unreachable!();
}

/// Wakes up all tasks whose wakeup time has elapsed.
Expand Down

0 comments on commit 34d1ab0

Please sign in to comment.