diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-10-15 22:17:46 -0700 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-10-15 22:17:46 -0700 |
commit | 9c9a29ceea6734175f9f7693ce86b3ba633f4f7b (patch) | |
tree | 9f9c4ed64f031fd7fd2c59a20d13d7640e216287 | |
parent | d150a9df0b0e84a3fe30af340762f96475f4b1e5 (diff) |
Don't initialize the twitter_connections list to NULL in twitter_init().
This fixes a weird bug where Twitter updates often stop after a while
when running in daemon mode with multiple users connected.
-rw-r--r-- | protocols/twitter/twitter.c | 4 | ||||
-rw-r--r-- | protocols/twitter/twitter.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 4ece97db..083246b1 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -37,6 +37,7 @@ imcb_log( ic, fmt ); \ } while( 0 ); +GSList *twitter_connections = NULL; /** * Main loop function @@ -563,7 +564,4 @@ void twitter_initmodule() ret = g_memdup(ret, sizeof(struct prpl)); ret->name = "identica"; register_protocol(ret); - - // Initialise the twitter_connections GSList. - twitter_connections = NULL; } diff --git a/protocols/twitter/twitter.h b/protocols/twitter/twitter.h index 0acb3b4d..98f16835 100644 --- a/protocols/twitter/twitter.h +++ b/protocols/twitter/twitter.h @@ -68,7 +68,7 @@ struct twitter_user_data * make sure the connection is still alive in callbacks before we do anything * else. */ -GSList *twitter_connections; +extern GSList *twitter_connections; void twitter_login_finish( struct im_connection *ic ); |