[Pkg-telepathy-commits] [libnice] 140/265: iostream: iostreams are only for reliable streams, no need to check

Simon McVittie smcv at debian.org
Wed May 14 12:05:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository libnice.

commit ca3921be23097a510905b279e55959d21e9e76f6
Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Thu Feb 20 01:41:22 2014 -0500

    iostream: iostreams are only for reliable streams, no need to check
---
 agent/inputstream.c  | 2 +-
 agent/outputstream.c | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/agent/inputstream.c b/agent/inputstream.c
index becb8c2..5eb8dc1 100644
--- a/agent/inputstream.c
+++ b/agent/inputstream.c
@@ -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;
diff --git a/agent/outputstream.c b/agent/outputstream.c
index fc13535..c173dda 100644
--- a/agent/outputstream.c
+++ b/agent/outputstream.c
@@ -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;
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git



More information about the Pkg-telepathy-commits mailing list