From 8ff2aa9d1f078ebc4e5e9ff0f5263ac79ebf0f99 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 3 Dec 2015 07:47:20 +0000 Subject: [PATCH] fix loop when calling writeToWatchedFile on non editable file --- node_modules/vfs-local/localfs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node_modules/vfs-local/localfs.js b/node_modules/vfs-local/localfs.js index e9cda24e..76cd3587 100644 --- a/node_modules/vfs-local/localfs.js +++ b/node_modules/vfs-local/localfs.js @@ -723,7 +723,8 @@ module.exports = function setup(fsOptions) { buffer.push(["end"]); } function error(err) { - resume(); + if (!options.bufferWrite) + resume(); if (tempPath) { fs.unlink(tempPath, callback.bind(null, err)); }