summaryrefslogtreecommitdiffstats
path: root/AFBClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AFBClient.cpp')
-rw-r--r--AFBClient.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/AFBClient.cpp b/AFBClient.cpp
index 99f22bd..cee49ad 100644
--- a/AFBClient.cpp
+++ b/AFBClient.cpp
@@ -403,7 +403,9 @@ void AFBClient::Impl::event(char const *et, char const *label) {
auto i = this->handlers.find(oet.second);
if (i != this->handlers.end()) {
- i->second(label);
+ if (this->labels.find(label) != this->labels.end()) {
+ i->second(label);
+ }
}
}