diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-26 00:33:30 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-26 00:33:30 +0100 |
commit | 41d415beaa1fd3bdd67a12686fc35386e5b81108 (patch) | |
tree | a5dac82033101f6c7413ead67098c71857ba5171 | |
parent | 8b8def5854857248f66b6a2580ce2e5a8f5597c8 (diff) | |
parent | 051372c0219f067bb4b116bd06d482420b20e3c8 (diff) |
Merging bugfix from mainline.
-rw-r--r-- | protocols/twitter/twitter_lib.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 53928287..6ceeae29 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); } /** |