From 441b9dd255ed67ea78467135266d225964ad7041 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 10 Jan 2012 23:36:29 +0000 Subject: Don't handle HTTP 401 responses from Twitter API differently anymore after initial login. This fixes issues with Twitter's intermittent authentication failures. (Bug #893) --- protocols/twitter/twitter_lib.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'protocols') diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 05990cc1..db1192ce 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -886,10 +886,6 @@ static void twitter_http_get_home_timeline(struct http_request *req) td->http_fails = 0; if (!(ic->flags & OPT_LOGGED_IN)) imcb_connected(ic); - } else if (req->status_code == 401) { - imcb_error(ic, "Authentication failure"); - imc_logout(ic, FALSE); - return; } else { // It didn't go well, output the error and return. if (++td->http_fails >= 5) @@ -938,10 +934,6 @@ static void twitter_http_get_mentions(struct http_request *req) td->http_fails = 0; if (!(ic->flags & OPT_LOGGED_IN)) imcb_connected(ic); - } else if (req->status_code == 401) { - imcb_error(ic, "Authentication failure"); - imc_logout(ic, FALSE); - return; } else { // It didn't go well, output the error and return. if (++td->http_fails >= 5) -- cgit v1.2.3