summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Crête <olivier.crete@collabora.com>2014-02-24 18:39:21 -0500
committerOlivier Crête <olivier.crete@collabora.com>2014-02-24 18:39:21 -0500
commit42e8f64af6fd5334d9ae054c28748faf6de07c0b (patch)
treee25d66b13ad5df52dc69d7a5adacc97858a8df30
parent9c5f3010a61f3fe382cb5eed1c8b8af644e181da (diff)
downloadlibnice-42e8f64af6fd5334d9ae054c28748faf6de07c0b.tar.gz
outputstream: If tcp, only check for space in the PseudoTCP queue
-rw-r--r--agent/outputstream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/outputstream.c b/agent/outputstream.c
index c173dda..42e9aab 100644
--- a/agent/outputstream.c
+++ b/agent/outputstream.c
@@ -472,8 +472,8 @@ 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 (component->tcp != NULL && pseudo_tcp_socket_can_send (component->tcp)) {
- retval = TRUE;
+ if (component->tcp != NULL) {
+ retval = pseudo_tcp_socket_can_send (component->tcp);
goto done;
}