iostream: iostreams are only for reliable streams, no need to check
authorOlivier Crête <olivier.crete@collabora.com>
Thu, 20 Feb 2014 06:41:22 +0000 (01:41 -0500)
committerOlivier Crête <olivier.crete@collabora.com>
Thu, 20 Feb 2014 23:39:45 +0000 (18:39 -0500)
agent/inputstream.c
agent/outputstream.c

index becb8c2..5eb8dc1 100644 (file)
@@ -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;
index fc13535..c173dda 100644 (file)
@@ -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;
   }