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

Allow for empty handler parameter in call to zmq::poller_t::add(). #119

Merged
merged 1 commit into from
Apr 9, 2017

Conversation

bjovke
Copy link

@bjovke bjovke commented Apr 9, 2017

handler parameter is std::function.
If default-constructed std::function is given to zmq::poller_t::add() as handler parameter it throws an exception in zmq::poller_t::wait() because empty std::function is invoked. This PR checks if handler is empty. If it is, forwards NULL to zmq_poller_add() and does not try to invoke handler on wait().

@bluca bluca merged commit bd1d53d into zeromq:master Apr 9, 2017
@ax3l ax3l mentioned this pull request Jul 31, 2017
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.

None yet

2 participants