diff options
-rw-r--r-- | tests/lib/textchan-group.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lib/textchan-group.c b/tests/lib/textchan-group.c index fedb0028d..f9552401a 100644 --- a/tests/lib/textchan-group.c +++ b/tests/lib/textchan-group.c @@ -16,6 +16,8 @@ #include <telepathy-glib/telepathy-glib.h> #include <telepathy-glib/telepathy-glib-dbus.h> +#include "tests/lib/debug.h" + static void password_iface_init (gpointer iface, gpointer data); G_DEFINE_TYPE_WITH_CODE (TpTestsTextChannelGroup, @@ -97,9 +99,14 @@ remove_with_reason (GObject *obj, /* User wants to leave */ if (!self->priv->closed) { + DEBUG ("closed"); self->priv->closed = TRUE; tp_svc_channel_emit_closed (self); } + else + { + DEBUG ("already closed"); + } return TRUE; } @@ -179,8 +186,13 @@ dispose (GObject *object) if (!self->priv->closed) { + DEBUG ("closed"); tp_svc_channel_emit_closed (self); } + else + { + DEBUG ("already closed"); + } ((GObjectClass *) tp_tests_text_channel_group_parent_class)->dispose (object); } @@ -205,9 +217,14 @@ channel_close (TpBaseChannel *base) if (!self->priv->closed) { + DEBUG ("closed"); self->priv->closed = TRUE; tp_svc_channel_emit_closed (self); } + else + { + DEBUG ("already closed"); + } } static void |