Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFreeman committed Nov 20, 2024
1 parent 7447ac4 commit 84bcbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coroutine/system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ bool System::wait_signal(const std::vector<int> &signals, double timeout) {
listeners[signo] = co;

#ifdef SW_USE_THREAD_CONTEXT
swoole_event_defer([signo](void *) { swoole_signal_set(signo, callback_fn, nullptr) });
swoole_event_defer([signo, callback_fn](void *) { swoole_signal_set(signo, callback_fn, nullptr) });
#else
swoole_signal_set(signo, callback_fn);
#endif
Expand Down

0 comments on commit 84bcbdd

Please sign in to comment.