From f988ad3fd0bb29ae8a16f5d921b92fd90b7792a6 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 31 Jul 2011 21:31:37 +0100 Subject: Don't timeout Jabber connections on OAuth initialization. --- protocols/jabber/jabber.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols') diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c index c97adf71..0ae903e2 100644 --- a/protocols/jabber/jabber.c +++ b/protocols/jabber/jabber.c @@ -145,7 +145,10 @@ static void jabber_login( account_t *acc ) For subsequent logins, exchange the refresh token for a valid access token (even though the last one maybe didn't expire yet). */ if( strncmp( acc->pass, "refresh_token=", 14 ) != 0 ) + { sasl_oauth2_init( ic ); + ic->flags |= OPT_SLOW_LOGIN; + } else sasl_oauth2_refresh( ic, acc->pass + 14 ); } -- cgit v1.2.3