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
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:
parent
60ff77ec1d
commit
333650938a
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user