Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit 9fa5a22

Browse files
committed
Reduction check for run_through was inverted
1 parent cf70394 commit 9fa5a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lumen_runtime/src/scheduler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ impl Scheduler {
198198
// The same as `run`, but stops when the process is run once
199199
loop {
200200
if self.run_once() {
201-
if arc_process.total_reductions.load(Ordering::SeqCst) <= reductions_before {
201+
if reductions_before < arc_process.total_reductions.load(Ordering::SeqCst) {
202202
break true;
203203
} else {
204204
continue;

0 commit comments

Comments
 (0)