Changeset 051372c for protocols/twitter


Ignore:
Timestamp:
2010-06-24T09:27:34Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
41d415b, 64f8c425
Parents:
38ff846
Message:

Don't create multiple main loops if the user follows >100 people.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter_lib.c

    r38ff846 r051372c  
    650650        // if the next_cursor is set to something bigger then 0 there are more friends to gather.
    651651        if (txl->next_cursor > 0)
     652        {
    652653                twitter_get_statuses_friends(ic, txl->next_cursor);
    653 
     654        }
     655        else
     656        {
     657                td->flags |= TWITTER_HAVE_FRIENDS;
     658                twitter_login_finish(ic);
     659        }
     660       
    654661        // Free the structure.
    655662        txl_free(txl);
    656663        g_free(txl);
    657        
    658         td->flags |= TWITTER_HAVE_FRIENDS;
    659         twitter_login_finish(ic);
    660664}
    661665
Note: See TracChangeset for help on using the changeset viewer.