diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-11-22 18:34:50 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-11-23 19:42:54 +0000 |
commit | fe2d1a8b42a3fcf1675981acf1832e1747d388f9 (patch) | |
tree | 5293fe4bea28206a7b70db5db44a0288523d91b4 /src/auth-manager.c | |
parent | 3661f06cca6ae655db5a14fd1db684756ccdb228 (diff) |
GabbleServerSaslChannel: be a TpBaseChannel
Diffstat (limited to 'src/auth-manager.c')
-rw-r--r-- | src/auth-manager.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/auth-manager.c b/src/auth-manager.c index 8b9fc7aa2..10ec5e60e 100644 --- a/src/auth-manager.c +++ b/src/auth-manager.c @@ -73,7 +73,7 @@ gabble_auth_manager_close_all (GabbleAuthManager *self) DEBUG ("called"); if (self->priv->channel != NULL) - gabble_server_sasl_channel_close (self->priv->channel); + tp_base_channel_close ((TpBaseChannel *) self->priv->channel); /* that results in the signal-driven-object-clearing dance */ g_assert (self->priv->channel == NULL); @@ -208,8 +208,10 @@ gabble_auth_manager_start_auth_async (WockyAuthRegistry *registry, gabble_server_sasl_channel_start_auth_async (self->priv->channel, callback, user_data); - g_assert (gabble_server_sasl_channel_is_open ( - self->priv->channel)); + g_assert (!tp_base_channel_is_destroyed ( + (TpBaseChannel *) self->priv->channel)); + g_assert (tp_base_channel_is_registered ( + (TpBaseChannel *) self->priv->channel)); tp_channel_manager_emit_new_channel (self, TP_EXPORTABLE_CHANNEL (self->priv->channel), NULL); } |