diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-11-16 17:50:16 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-11-16 17:55:04 -0800 |
| commit | 819955844387a666b31039a030379287106dc488 (patch) | |
| tree | 2ac7288ea4d79364e911d57c5df831617f64b76e /src/rt/rust_task.cpp | |
| parent | bae817efe688d32047db158606495dea6a2466f0 (diff) | |
| download | rust-819955844387a666b31039a030379287106dc488.tar.gz rust-819955844387a666b31039a030379287106dc488.zip | |
rt: Remove an unnecessary check from rust_task::yield
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 19e9e1e14e1..6d5241ff344 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -264,9 +264,7 @@ rust_task::yield(size_t time_in_us) { name, this, time_in_us); if (killed && !dead()) { - if (blocked()) { - unblock(); - } + unblock(); killed = false; fail(); } |
