summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/node.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node.js b/src/node.js
index 27a63677e8..68821023b2 100644
--- a/src/node.js
+++ b/src/node.js
@@ -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];