Skip to content

Conversation

D-Alex
Copy link
Member

@D-Alex D-Alex commented Jul 17, 2015

once_on_XXXX was called more than once for events with a frequency
higher than the eventloop.

once_on_XXXX was called more than once for events with a frequency
higher than the eventloop.
@doudou
Copy link
Member

doudou commented Jul 17, 2015

Wouldn't the proper fix be to check for listening? at the point of call ? You could have the same effect on any on_* calls if the callback calls stop.

@D-Alex
Copy link
Member Author

D-Alex commented Jul 19, 2015

Yes, the only problem is that the listeners get cloned. Therefore, I assume ObjectBase::process_event cannot handle this for all cases. That we could do is moving the check directly into the method EventListener::call and ignore all calls if the listener was stopped.

@doudou
Copy link
Member

doudou commented Jul 23, 2015

Yes, the only problem is that the listeners get cloned. Therefore, I assume ObjectBase::process_event cannot handle this for all cases.

I don't understand that one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants