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.c | |
parent | 1a2c1c0c413ea1124544cdc9a24a0d2faa5dbb8f (diff) |
Fix cleanup failure on Twitter timeouts.
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r-- | protocols/twitter/twitter.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 4626cf55..57820568 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -39,13 +39,11 @@ gboolean twitter_main_loop(gpointer data, gint fd, b_input_condition cond) // Check if we are still logged in... if (!g_slist_find(twitter_connections, ic)) - return 0; + return FALSE; // Do stuff.. - twitter_get_timeline(ic, -1); - - // If we are still logged in run this function again after timeout. - return (ic->flags & OPT_LOGGED_IN) == OPT_LOGGED_IN; + return twitter_get_timeline(ic, -1) && + ((ic->flags & OPT_LOGGED_IN) == OPT_LOGGED_IN); } static void twitter_main_loop_start(struct im_connection *ic) |