diff --git a/src/io_thread.cpp b/src/io_thread.cpp index 7c8b3e20..a70b8ec8 100644 --- a/src/io_thread.cpp +++ b/src/io_thread.cpp @@ -112,8 +112,7 @@ zmq::poller_t *zmq::io_thread_t::get_poller () void zmq::io_thread_t::process_stop () { - if (mailbox_handle) { - poller->rm_fd (mailbox_handle); - } + zmq_assert (mailbox_handle); + poller->rm_fd (mailbox_handle); poller->stop (); }