Skip to content

Commit

Permalink
Fixed the missing 'lock' argument in the callback of the 'refresh' me…
Browse files Browse the repository at this point in the history
…thod of the lock manager returned in the 'FileSystem' class
  • Loading branch information
AdrienCastex committed Aug 4, 2017
1 parent 7ea7be7 commit 3dae2aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/manager/v2/fileSystem/FileSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ var FileSystem = (function () {
lm.refresh(uuid, timeout, function (e, lock) {
if (!e)
fs.emit('lock-refresh', ctx, pPath, { uuid: uuid, timeout: timeout, lock: lock });
callback(e);
callback(e, lock);
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/manager/v2/fileSystem/FileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ export abstract class FileSystem implements ISerializableFileSystem
lm.refresh(uuid, timeout, (e, lock) => {
if(!e)
fs.emit('lock-refresh', ctx, pPath, { uuid, timeout, lock });
callback(e);
callback(e, lock);
});
})
})
Expand Down

0 comments on commit 3dae2aa

Please sign in to comment.