Skip to content

Commit 8199558

Browse files
committed
rt: Remove an unnecessary check from rust_task::yield
1 parent bae817e commit 8199558

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/rt/rust_task.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,7 @@ rust_task::yield(size_t time_in_us) {
264264
name, this, time_in_us);
265265

266266
if (killed && !dead()) {
267-
if (blocked()) {
268-
unblock();
269-
}
267+
unblock();
270268
killed = false;
271269
fail();
272270
}

0 commit comments

Comments
 (0)