Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async: fix once_on_EVENT called more than once #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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