[telepathy-gabble/master] fire ConnectionClosed when connection is refused
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed May 20 07:06:29 PDT 2009
---
src/tube-stream.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/tube-stream.c b/src/tube-stream.c
index aed43a5..bba106a 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -64,9 +64,10 @@
#include "tube-iface.h"
#include "util.h"
-/* TODO: we should generate that in tp-glib */
#define GABBLE_ERROR_STR_CONNECTION_LOST \
"org.freedesktop.Telepathy.Error.ConnectionLost"
+#define GABBLE_ERROR_STR_CONNECTION_REFUSED \
+ "org.freedesktop.Telepathy.Error.ConnectionRefused"
static void channel_iface_init (gpointer, gpointer);
static void tube_iface_init (gpointer g_iface, gpointer iface_data);
@@ -450,6 +451,9 @@ extra_bytestream_negotiate_cb (GabbleBytestreamIface *bytestream,
{
DEBUG ("initiator refused new bytestream");
+ fire_connection_closed (self, transport,
+ GABBLE_ERROR_STR_CONNECTION_REFUSED);
+
g_object_unref (transport);
return;
}
--
1.5.6.5
More information about the telepathy-commits
mailing list