[Telepathy-commits] [telepathy-salut/master] src/tube-stream.c: change the state of the tube when offering it using the new tube API
Alban Crequy
alban.crequy at collabora.co.uk
Fri Feb 6 03:14:58 PST 2009
---
src/tube-stream.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/tube-stream.c b/src/tube-stream.c
index 2b19347..f9041a9 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -2214,6 +2214,11 @@ salut_tube_stream_offer_stream_tube (SalutSvcChannelTypeStreamTube *iface,
return;
}
+ if (priv->handle_type == TP_HANDLE_TYPE_ROOM)
+ priv->state = SALUT_TUBE_CHANNEL_STATE_OPEN;
+ else
+ priv->state = SALUT_TUBE_CHANNEL_STATE_REMOTE_PENDING;
+
g_assert (address_type == TP_SOCKET_ADDRESS_TYPE_UNIX ||
address_type == TP_SOCKET_ADDRESS_TYPE_IPV4 ||
address_type == TP_SOCKET_ADDRESS_TYPE_IPV6);
--
1.5.6.5
More information about the telepathy-commits
mailing list