fix for unregistering notifications in a notification
This commit is contained in:
parent
85c655a91c
commit
3e37795d62
|
@ -120,7 +120,8 @@ class RealmDelegate : public BindingContext {
|
|||
arguments[0] = realm_object;
|
||||
arguments[1] = Value::from_string(m_context, notification_name);
|
||||
|
||||
for (auto &callback : m_notifications) {
|
||||
std::list<Protected<FunctionType>> notifications_copy(m_notifications);
|
||||
for (auto &callback : notifications_copy) {
|
||||
Function<T>::call(m_context, callback, realm_object, 2, arguments);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue