From 748bcdde269da5cd8184418f0df334e12338a541 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 21 Nov 2010 15:23:54 +0000 Subject: 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. --- protocols/nogaim.c | 1 + 1 file changed, 1 insertion(+) (limited to 'protocols/nogaim.c') diff --git a/protocols/nogaim.c b/protocols/nogaim.c index aa3ad5bb..8fb85ea7 100644 --- a/protocols/nogaim.c +++ b/protocols/nogaim.c @@ -276,6 +276,7 @@ void imcb_connected( struct im_connection *ic ) imcb_log( ic, "Logged in" ); + b_event_remove( ic->keepalive ); ic->keepalive = b_timeout_add( 60000, send_keepalive, ic ); ic->flags |= OPT_LOGGED_IN; -- cgit v1.2.3