From ac36463cce01e4c7a9c48a96dcd3fe37d1c89dc8 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 10 Jan 2012 15:13:18 +0000 Subject: Return, don't try to flush the timeline on a broken connection. This likely fixes #888/#891. --- protocols/twitter/twitter_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/twitter/twitter_lib.c') diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 699bac27..05990cc1 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -889,7 +889,7 @@ static void twitter_http_get_home_timeline(struct http_request *req) } else if (req->status_code == 401) { imcb_error(ic, "Authentication failure"); imc_logout(ic, FALSE); - goto end; + return; } else { // It didn't go well, output the error and return. if (++td->http_fails >= 5) @@ -941,7 +941,7 @@ static void twitter_http_get_mentions(struct http_request *req) } else if (req->status_code == 401) { imcb_error(ic, "Authentication failure"); imc_logout(ic, FALSE); - goto end; + return; } else { // It didn't go well, output the error and return. if (++td->http_fails >= 5) -- cgit v1.2.3