node.js/twitter.js
changeset 577 515cb86db68a
parent 337 3af1fe77076a
--- a/node.js/twitter.js	Tue Nov 01 11:59:00 2011 -0700
+++ b/node.js/twitter.js	Tue Nov 01 12:04:15 2011 -0700
@@ -73,6 +73,7 @@
     if (!attempt) {
 	attempt = 1;
     }
+    emitter.emit("twitterRestart");
     var stream = https.request(
 	{
 	    host: 'stream.twitter.com'
@@ -124,7 +125,7 @@
     } catch(err) {
 	console.log(err);
     }
-    emitter.on("twitterListChange", function(id) {
+    emitter.on("twitterRestart", function(id) {
 	stream.abort();
     });
 };