From 29675c85510e512e92e5e4e205f00ee0e1bcb43f Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Mon, 12 Sep 2011 15:43:53 +0200 Subject: [PATCH] + --- world/net/twitter/client.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/world/net/twitter/client.c b/world/net/twitter/client.c index d69b4b6..63dd80d 100644 --- a/world/net/twitter/client.c +++ b/world/net/twitter/client.c @@ -214,10 +214,12 @@ user_stream_data(string data, string headers, int http_status, int fetching) { P3(("twitter/client:user_stream_data(..., %O, %O, %O)\n%O\n", headers, http_status, fetching, data)) if (http_status == R_OK && data && data != "") { - if (!friends) - friends = parse_json(data); - else - parse_statuses(data); + if (!friends) { + if (catch(friends = parse_json(data))) { + P1(("%O: Twitter is over capacity. %O\n", ME, err)) + remove_interactive(ME); + } + } else parse_statuses(data); } if (fetching) {