Merge branch 'master' of code.uocat.com:tqcq/sled
Some checks failed
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 1m5s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 1m10s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 1m23s
linux-arm-gcc / linux-gcc-armhf (push) Failing after 1m34s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 1m44s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 1m50s

This commit is contained in:
tqcq 2024-04-07 09:10:47 +00:00
commit 3f8f1fee36

View File

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