_callbacks[notification.tag] creates new entry so in destructor we fail
on assert
This commit is contained in:
Dawid Drozd 2016-11-08 17:55:59 +01:00
parent d44c38d24e
commit 2a5c0d1ee5

View File

@ -123,7 +123,7 @@ public:
using CallbackType = typename notification_traits<NotificationType>::callback_type;
assert(notification.tag > NotificationConst::UNUSED_TAG);
if (_callbacks[notification.tag] == nullptr)
if (_callbacks.find(notification.tag) == _callbacks.end())
{
return;
}