void AFBClient::Impl::set_event_handler(
enum EventType et, std::function<void(char const *)> func) {
- UNUSED(et);
- UNUSED(func);
TRACE();
if (et >= 1 && et <= 6) { // Yeah ... just go with it!
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);
+ }
}
}