Ignore:
Timestamp:
2013-06-16T17:33:58Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7e84168
Parents:
1a2c1c0
Message:

Fix cleanup failure on Twitter timeouts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r1a2c1c0 r2f9027c  
    4040        // Check if we are still logged in...
    4141        if (!g_slist_find(twitter_connections, ic))
    42                 return 0;
     42                return FALSE;
    4343
    4444        // Do stuff..
    45         twitter_get_timeline(ic, -1);
    46 
    47         // If we are still logged in run this function again after timeout.
    48         return (ic->flags & OPT_LOGGED_IN) == OPT_LOGGED_IN;
     45        return twitter_get_timeline(ic, -1) &&
     46               ((ic->flags & OPT_LOGGED_IN) == OPT_LOGGED_IN);
    4947}
    5048
Note: See TracChangeset for help on using the changeset viewer.