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>
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);
}