aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-11-21 15:23:54 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2010-11-21 15:23:54 +0000
commit748bcdde269da5cd8184418f0df334e12338a541 (patch)
tree5e046d6d0426872666722ceab8b04e48296f8360 /protocols/twitter
parentbb151f7aad467bf29c6e5ca552088f7f0b8ec876 (diff)
Time out if logging in takes too long (2m for now). Except for Twitter
OAuth login, which requires user action. This mostly solves problems with OSCAR login silently failing, but may also be useful in other places.
Diffstat (limited to 'protocols/twitter')
-rw-r--r--protocols/twitter/twitter.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c
index 083246b1..2f28f746 100644
--- a/protocols/twitter/twitter.c
+++ b/protocols/twitter/twitter.c
@@ -107,6 +107,10 @@ static void twitter_oauth_start( struct im_connection *ic )
imcb_log( ic, "Requesting OAuth request token" );
td->oauth_info = oauth_request_token( &twitter_oauth, twitter_oauth_callback, ic );
+
+ /* We need help from the user to complete OAuth login, so don't time
+ out on this login. */
+ ic->flags |= OPT_SLOW_LOGIN;
}
static gboolean twitter_oauth_callback( struct oauth_info *info )