Commit ca3921be authored by Olivier Crête's avatar Olivier Crête

iostream: iostreams are only for reliable streams, no need to check

parent 26129cf6
......@@ -351,7 +351,7 @@ nice_input_stream_is_readable (GPollableInputStream *stream)
/* If it’s a reliable agent, see if there’s any pending data in the pseudo-TCP
* buffer. */
if (agent->reliable && component->tcp != NULL &&
if (component->tcp != NULL &&
pseudo_tcp_socket_get_available_bytes (component->tcp) > 0) {
retval = TRUE;
goto done;
......
......@@ -472,8 +472,7 @@ nice_output_stream_is_writable (GPollableOutputStream *stream)
/* If it’s a reliable agent, see if there’s any space in the pseudo-TCP output
* buffer. */
if (agent->reliable && component->tcp != NULL &&
pseudo_tcp_socket_can_send (component->tcp)) {
if (component->tcp != NULL && pseudo_tcp_socket_can_send (component->tcp)) {
retval = TRUE;
goto done;
}
......
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