summaryrefslogtreecommitdiff
path: root/src/tube-stream.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-05-27 15:45:37 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-06-26 10:27:03 +0100
commit77946a9a9198635f331894202685443c280ecaff (patch)
tree1df3a905a42b8dac9077438e92c69e891cb184c9 /src/tube-stream.c
parentf54efd69c4633b136c230f3fbf8e59dd094e6046 (diff)
downloadtelepathy-salut-77946a9a9198635f331894202685443c280ecaff.tar.gz
tube-stream: fire NewLocalConnection
Diffstat (limited to 'src/tube-stream.c')
-rw-r--r--src/tube-stream.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tube-stream.c b/src/tube-stream.c
index 9b0be811..6d711865 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -663,6 +663,18 @@ generate_connection_id (SalutTubeStream *self,
return priv->last_connection_id;
}
+static void
+fire_new_local_connection (SalutTubeStream *self,
+ GibberTransport *transport)
+{
+ guint connection_id;
+
+ connection_id = generate_connection_id (self, transport);
+
+ salut_svc_channel_type_stream_tube_emit_new_local_connection (self,
+ connection_id);
+}
+
/* callback for listening connections from the local application */
static void
local_new_connection_cb (GibberListener *listener,
@@ -689,6 +701,7 @@ local_new_connection_cb (GibberListener *listener,
if (!start_stream_direct (self, transport, NULL))
{
DEBUG ("closing new client connection");
+ return;
}
}
else
@@ -696,8 +709,11 @@ local_new_connection_cb (GibberListener *listener,
if (!start_stream_initiation (self, transport, NULL))
{
DEBUG ("closing new client connection");
+ return;
}
}
+
+ fire_new_local_connection (self, transport);
}
static void