0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-28 07:58:14 +08:00

Minor bug in vtcp_listener fixed

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik 2011-08-07 16:09:52 +02:00
parent 24230515f5
commit 8378180cbb

View File

@ -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_)