node.js/twitter.js
changeset 204 ccfdf62e9770
parent 194 6830fb1e027b
child 208 d815783a4272
--- a/node.js/twitter.js	Wed Aug 31 23:59:40 2011 +0200
+++ b/node.js/twitter.js	Thu Sep 01 00:03:55 2011 +0200
@@ -76,4 +76,7 @@
     stream.setHeader("Authorization", 'Basic ' + twitter_auth);
     stream.write("follow=" + twitter_ids.join(","));
     stream.end();
+    emitter.on("twitterListChange", function() {
+	stream.abort();
+    });
 };