Fix default value for persistent in watchFile()
authorRyan Dahl <ry@tinyclouds.org>
Tue, 17 Nov 2009 22:07:31 +0000 (23:07 +0100)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 17 Nov 2009 22:07:31 +0000 (23:07 +0100)
src/node.js

index 27a6367..6882102 100644 (file)
@@ -350,8 +350,7 @@ process.watchFile = function (filename) {
   }
     
   if (options.persistent === undefined) options.persistent = true;
-  if (options.interval === undefined) options.persistent = 0;
-
+  if (options.interval === undefined) options.interval = 0;
 
   if (filename in statWatchers) {
     stat = statWatchers[filename];