diff --git a/asynchronix/src/runtime/executor/pool_manager.rs b/asynchronix/src/runtime/executor/pool_manager.rs index d0577d1..55979cb 100644 --- a/asynchronix/src/runtime/executor/pool_manager.rs +++ b/asynchronix/src/runtime/executor/pool_manager.rs @@ -90,6 +90,7 @@ impl PoolManager { self.record.increment(first_idle_worker); self.begin_worker_search(); self.worker_unparkers[first_idle_worker].unpark(); + return; } } } @@ -121,6 +122,7 @@ impl PoolManager { self.record.increment(first_idle_worker); self.begin_worker_search(); self.worker_unparkers[first_idle_worker].unpark(); + return; } } }