summaryrefslogtreecommitdiff
path: root/src/tube-stream.c
diff options
context:
space:
mode:
authorAlban Crequy <alban.crequy@collabora.co.uk>2008-11-25 14:08:04 +0000
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-02-03 14:30:28 +0000
commit9ab0bcff32518fd442fd8aab8d4aa6a703b4d975 (patch)
treeeeb1152ea62d958b5e65f9050c9c202c950ac059 /src/tube-stream.c
parent1a6836d69d79628fe85a42e681ddbd609f49047a (diff)
downloadtelepathy-salut-9ab0bcff32518fd442fd8aab8d4aa6a703b4d975.tar.gz
src/tube-stream.c: change the state of the tube when offering it using the new tube API
Diffstat (limited to 'src/tube-stream.c')
-rw-r--r--src/tube-stream.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tube-stream.c b/src/tube-stream.c
index 2b193474..f9041a93 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);