diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-07-31 21:31:37 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-07-31 21:31:37 +0100 |
commit | f988ad3fd0bb29ae8a16f5d921b92fd90b7792a6 (patch) | |
tree | afc20f486a28beb4c6f10606f93799d338cc4dc3 /protocols | |
parent | f138bd25e9184c3033f405a7bbb5734d82a877c7 (diff) |
Don't timeout Jabber connections on OAuth initialization.
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/jabber/jabber.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 ); } |