fix loop when calling writeToWatchedFile on non editable file

This commit is contained in:
nightwing 2015-12-03 07:47:20 +00:00
parent 558f6ce37e
commit 8ff2aa9d1f

3
node_modules/vfs-local/localfs.js generated vendored
View File

@ -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));
}