fix dispatcher
Some checks failed
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 2m16s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 2m22s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 2m18s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 2m27s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 2m31s
linux-arm-gcc / linux-gcc-armhf (push) Failing after 2m49s

This commit is contained in:
tqcq 2024-04-07 06:50:02 +00:00
parent 60ff77ec1d
commit 333650938a

View File

@ -44,7 +44,10 @@ public:
// sled::MutexLock lock(&mutex_);
sled::SharedMutexReadLock lock(&rwlock_);
for (auto &handler : handlers_) {
if (handler->HandleMessage(message)) { return DispatchResult::kHandled; }
if (handler->HandleMessage(message)) {
handler->OnMessage(message);
return DispatchResult::kHandled;
}
}
return DispatchResult::kNotFound;
}