diff options
author | Jonny Lamb <jonnylamb@gnome.org> | 2010-12-15 17:10:56 +0800 |
---|---|---|
committer | Jonny Lamb <jonnylamb@gnome.org> | 2011-01-26 21:38:06 +0800 |
commit | a15a84ff439be0a22ce2fb793ceb3b6220a4d574 (patch) | |
tree | 8a1fc02601a3399e6fd2202b9cbf6b06b3491c8a /libempathy | |
parent | 294c9f88d88ebfb1d3eabc8a22ff66129811bcdf (diff) | |
download | gsoc2013-empathy-a15a84ff439be0a22ce2fb793ceb3b6220a4d574.tar gsoc2013-empathy-a15a84ff439be0a22ce2fb793ceb3b6220a4d574.tar.gz gsoc2013-empathy-a15a84ff439be0a22ce2fb793ceb3b6220a4d574.tar.bz2 gsoc2013-empathy-a15a84ff439be0a22ce2fb793ceb3b6220a4d574.tar.lz gsoc2013-empathy-a15a84ff439be0a22ce2fb793ceb3b6220a4d574.tar.xz gsoc2013-empathy-a15a84ff439be0a22ce2fb793ceb3b6220a4d574.tar.zst gsoc2013-empathy-a15a84ff439be0a22ce2fb793ceb3b6220a4d574.zip |
server-sasl-handler: add more debugging and only call Close in Status_Succeeded
Calling Close() straight after AcceptSASL() should be fine, but it
crashed gabble on versions < 0.11.4. Waiting for State_Accepted is
fine though.
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-server-sasl-handler.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libempathy/empathy-server-sasl-handler.c b/libempathy/empathy-server-sasl-handler.c index 749311d4b..3cfc86fa8 100644 --- a/libempathy/empathy-server-sasl-handler.c +++ b/libempathy/empathy-server-sasl-handler.c @@ -89,9 +89,13 @@ sasl_status_changed_cb (TpChannel *channel, if (status == TP_SASL_STATUS_SERVER_SUCCEEDED) { + DEBUG ("Calling AcceptSASL"); tp_cli_channel_interface_sasl_authentication_call_accept_sasl ( priv->channel, -1, NULL, NULL, NULL, NULL); - + } + else if (status == TP_SASL_STATUS_SUCCEEDED) + { + DEBUG ("SASL succeeded, calling Close"); tp_cli_channel_call_close (priv->channel, -1, NULL, NULL, NULL, NULL); } |