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 13, 2023
1 parent e694e2d commit 03542a4
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 @@ -623,12 +623,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 03542a4

Please sign in to comment.