diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2013-06-16 18:33:58 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2013-06-16 18:33:58 +0100 |
commit | 2f9027c9d6fbc50226e94305afe1cb0fba9deeca (patch) | |
tree | 477cb465ec594cb278b7fddc6b49e7504b758a7e /protocols/twitter/twitter_lib.c | |
parent | 1a2c1c0c413ea1124544cdc9a24a0d2faa5dbb8f (diff) |
Fix cleanup failure on Twitter timeouts.
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
-rw-r--r-- | protocols/twitter/twitter_lib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 05222af2..a98054dd 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -899,7 +899,7 @@ static void twitter_get_mentions(struct im_connection *ic, gint64 next_cursor); /** * Get the timeline with optionally mentions */ -void twitter_get_timeline(struct im_connection *ic, gint64 next_cursor) +gboolean twitter_get_timeline(struct im_connection *ic, gint64 next_cursor) { struct twitter_data *td = ic->proto_data; gboolean include_mentions = set_getbool(&ic->acc->set, "fetch_mentions"); @@ -908,6 +908,7 @@ void twitter_get_timeline(struct im_connection *ic, gint64 next_cursor) if (++td->http_fails >= 5) { imcb_error(ic, "Fetch timeout (%d)", td->flags); imc_logout(ic, TRUE); + return FALSE; } } @@ -918,6 +919,8 @@ void twitter_get_timeline(struct im_connection *ic, gint64 next_cursor) if (include_mentions) { twitter_get_mentions(ic, next_cursor); } + + return TRUE; } /** |