Commit 8378180c authored by Martin Sustrik's avatar Martin Sustrik

Minor bug in vtcp_listener fixed

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 24230515
......@@ -43,10 +43,11 @@ zmq::vtcp_listener_t::vtcp_listener_t (io_thread_t *io_thread_,
zmq::vtcp_listener_t::~vtcp_listener_t ()
{
zmq_assert (s != retired_fd);
int rc = ::close (s);
errno_assert (rc == 0);
s = retired_fd;
if (s != retired_fd) {
int rc = ::close (s);
errno_assert (rc == 0);
s = retired_fd;
}
}
int zmq::vtcp_listener_t::set_address (const char *addr_)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment