Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Dec 6, 2024
1 parent 62d47da commit 00ff508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/process_pool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ void ProcessPool::stop(Worker *worker) {
}

if (onWorkerExit) {
reactor->set_end_callback(Reactor::PRIORITY_TRY_EXIT, [&](Reactor *reactor) {
reactor->set_end_callback(Reactor::PRIORITY_TRY_EXIT, [this, worker](Reactor *reactor) {
onWorkerExit(this, worker);
if (reactor->if_exit()) {
reactor->running = false;
Expand Down

0 comments on commit 00ff508

Please sign in to comment.