corrected calling the callback function if failed to queue operation for utimes

This commit is contained in:
Barry Tulchinsky 2013-12-20 12:04:31 -05:00
parent c62fe44fcd
commit 418d0bacf1
1 changed files with 8 additions and 0 deletions

View File

@ -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 {