Skip to content

Commit

Permalink
cloud: fix unhandled rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Aug 13, 2023
1 parent 1f1218a commit f562dd5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
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 @@ -55,5 +55,5 @@
"@types/nat-upnp": "^1.1.2",
"@types/node": "^20.4.5"
},
"version": "0.1.22"
"version": "0.1.23"
}
7 changes: 6 additions & 1 deletion plugins/cloud/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,12 @@ class ScryptedCloud extends ScryptedDeviceBase implements OauthClient, Settings,
});
client.write(`reverse:${registrationId}\n`);

const read = await readLine(client);
try {
const read = await readLine(client);
}
catch (e) {
return;
}
claimed = true;
let local: any;

Expand Down

0 comments on commit f562dd5

Please sign in to comment.