Skip to content
Snippets Groups Projects
Commit 94e39696 authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Vladimir Davydov
Browse files

iproto: check connection state instead of fd

iproto_connection->input.fd != -1 iff state != IPROTO_CONNECTION_ALIVE.
Let's check the state instead of input.fd or output.fd, because it's
easier for understanding.

While we are at it, drop the stale comment to iproto_connection_is_idle:
the function doesn't use evio_has_fd at all.
parent 981f230a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment