Skip to content

Commit

Permalink
Merge pull request #249 from edi9999/patch-1
Browse files Browse the repository at this point in the history
File size changed when using polling mode
  • Loading branch information
es128 committed Mar 4, 2015
2 parents e80e082 + ba9ac21 commit d65a5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nodefs-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function setFsWatchFileListener(path, fullPath, options, handlers) {
rawEmitter('change', fullPath, {curr: curr, prev: prev});
});
var currmtime = curr.mtime.getTime();
if (currmtime > prev.mtime.getTime() || currmtime === 0) {
if (curr.size !== prev.size || currmtime > prev.mtime.getTime() || currmtime === 0) {
container.listeners.forEach(function(listener) {
listener(path, curr);
});
Expand Down

0 comments on commit d65a5c1

Please sign in to comment.