aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2012-01-10 15:13:18 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2012-01-10 15:13:18 +0000
commitac36463cce01e4c7a9c48a96dcd3fe37d1c89dc8 (patch)
tree5c59ca3a066dcc8f466248a6718f2e117e6a3513
parent761572639774ee1642229a24c625a569ef4ab48c (diff)
Return, don't try to flush the timeline on a broken connection. This likely
fixes #888/#891.
-rw-r--r--protocols/twitter/twitter_lib.c4
1 files changed, 2 insertions, 2 deletions
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)