aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/twitter')
-rw-r--r--protocols/twitter/twitter.c1
-rw-r--r--protocols/twitter/twitter_lib.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c
index f538f885..6bde497a 100644
--- a/protocols/twitter/twitter.c
+++ b/protocols/twitter/twitter.c
@@ -71,6 +71,7 @@ static void twitter_main_loop_start(struct im_connection *ic)
/* That fetch was just to get backlog, the stream will give
us the rest. \o/ */
twitter_open_stream(ic);
+ ic->flags |= OPT_PONGS;
} else {
/* Not using the streaming API, so keep polling the old-
fashioned way. :-( */
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c
index d7e54392..bf5d76ab 100644
--- a/protocols/twitter/twitter_lib.c
+++ b/protocols/twitter/twitter_lib.c
@@ -739,6 +739,7 @@ static void twitter_http_stream(struct http_request *req)
if (!g_slist_find(twitter_connections, ic))
return;
+ ic->flags |= OPT_PONGED;
td = ic->proto_data;
if ((req->flags & HTTPC_EOF) || !req->reply_body) {