mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-13 10:52:57 +01:00
call the correct function
This commit is contained in:
parent
f51fa9695a
commit
36b6053f92
4
zmq.hpp
4
zmq.hpp
@ -2744,8 +2744,8 @@ template<typename T = no_user_data> class poller_t
|
||||
void add_impl(fd_t fd, event_flags events, T *user_data)
|
||||
{
|
||||
if (0
|
||||
!= zmq_poller_add(poller_ptr.get(), fd, user_data,
|
||||
static_cast<short>(events))) {
|
||||
!= zmq_poller_add_fd(poller_ptr.get(), fd, user_data,
|
||||
static_cast<short>(events))) {
|
||||
throw error_t();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user