mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
use enum retired_fd instead of -1
This commit is contained in:
parent
ac99d50abb
commit
6bcced7537
@ -87,7 +87,7 @@ void zmq::socks_connecter_t::process_term (int linger_)
|
||||
case sending_request:
|
||||
case waiting_for_response:
|
||||
rm_fd (handle);
|
||||
if (s != -1)
|
||||
if (s != retired_fd)
|
||||
close ();
|
||||
break;
|
||||
}
|
||||
@ -227,7 +227,7 @@ void zmq::socks_connecter_t::initiate_connect ()
|
||||
}
|
||||
// Handle any other error condition by eventual reconnect.
|
||||
else {
|
||||
if (s != -1)
|
||||
if (s != retired_fd)
|
||||
close ();
|
||||
start_timer ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user