Skip to content

Commit

Permalink
workaround case involving flush
Browse files Browse the repository at this point in the history
  • Loading branch information
williamstein committed Oct 17, 2023
1 parent b6ff764 commit b5cd5d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion websocketfs/lib/sftp-fuse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,15 @@ export default class SftpFuse {
}
cb(0);
} catch (err) {
fuseError(cb)(err);
if (err.errno == -2) {
// sometimes this happens when flush after fd
// is no longer available. Not sure why. E.g., when starting sage.
// so we log it but make it non-fatal.
log("flush", err);
cb(0);
} else {
fuseError(cb)(err);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion websocketfs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "websocketfs",
"version": "0.8.0",
"version": "0.8.1",
"description": "Like sshfs, but over a WebSocket",
"main": "./dist/lib/index.js",
"scripts": {
Expand Down

0 comments on commit b5cd5d8

Please sign in to comment.