Skip to content

Commit

Permalink
cloud: handle mux carrier errors
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Sep 3, 2024
1 parent b308705 commit 8b9cfeb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion plugins/cloud/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"ts-node/register"
],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
},
{
Expand Down
4 changes: 2 additions & 2 deletions plugins/cloud/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@
"@types/node": "^22.1.0",
"ts-node": "^10.9.2"
},
"version": "0.2.35"
"version": "0.2.36"
}
3 changes: 3 additions & 0 deletions plugins/cloud/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,9 @@ class ScryptedCloud extends ScryptedDeviceBase implements OauthClient, Settings,

socket.pipe(local).pipe(socket);
});
mux.on('error', () => {
client.destroy();
});
}
});

Expand Down

0 comments on commit 8b9cfeb

Please sign in to comment.