mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-28 07:58:14 +08:00
Merge pull request #775 from pijyoi/master
use enum retired_fd instead of -1
This commit is contained in:
commit
f5b6bd70f3
@ -121,7 +121,7 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_,
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
if (s->mailbox.get_fd () == -1)
|
||||
if (s->mailbox.get_fd () == retired_fd)
|
||||
return NULL;
|
||||
|
||||
alloc_assert (s);
|
||||
|
Loading…
x
Reference in New Issue
Block a user