Kernel.Event: fix style

This commit is contained in:
Rachel 2025-12-11 17:37:33 +08:00
parent a8a01bfaae
commit 6e3360dcc6
No known key found for this signature in database
GPG Key ID: BA6DA18E0C1F046A

View File

@ -67,9 +67,8 @@ bool EqueueInternal::ScheduleEvent(u64 id, s16 filter,
std::weak_ptr weak_token = m_life_token;
it->timer->async_wait(
[this, event_data = event.event, callback, weak_token](const boost::system::error_code& ec) {
it->timer->async_wait([this, event_data = event.event, callback,
weak_token](const boost::system::error_code& ec) {
// If the token already expires return to avoid calling to callback with an invalid pointer.
if (weak_token.expired()) {
return;