aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--protocols/twitter/twitter_lib.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c
index fb7a6af9..36422a5e 100644
--- a/protocols/twitter/twitter_lib.c
+++ b/protocols/twitter/twitter_lib.c
@@ -649,14 +649,18 @@ static void twitter_http_get_statuses_friends(struct http_request *req)
// if the next_cursor is set to something bigger then 0 there are more friends to gather.
if (txl->next_cursor > 0)
+ {
twitter_get_statuses_friends(ic, txl->next_cursor);
-
+ }
+ else
+ {
+ td->flags |= TWITTER_HAVE_FRIENDS;
+ twitter_login_finish(ic);
+ }
+
// Free the structure.
txl_free(txl);
g_free(txl);
-
- td->flags |= TWITTER_HAVE_FRIENDS;
- twitter_login_finish(ic);
}
/**