From 418d0bacf1467b05be2b9b2a1f0a702b43c37954 Mon Sep 17 00:00:00 2001 From: Barry Tulchinsky Date: Fri, 20 Dec 2013 12:04:31 -0500 Subject: [PATCH] corrected calling the callback function if failed to queue operation for utimes --- src/fs.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/fs.js b/src/fs.js index e28d71e..4f7e39b 100644 --- a/src/fs.js +++ b/src/fs.js @@ -1956,6 +1956,10 @@ define(function(require) { _utimes(context, path, atime, mtime, callback); } ); + + if (error) { + callback(error); + } }; FileSystem.prototype.futimes = function(fd, atime, mtime, callback) { callback = maybeCallback(callback); @@ -1966,6 +1970,10 @@ define(function(require) { _futimes(fs, context, fd, atime, mtime, callback); } ); + + if (error) { + callback(error); + } }; return {