don't auth if settings are not set to read

This commit is contained in:
Liran Cohen 2023-01-26 10:32:58 -05:00
parent e63b1a0d8c
commit 184fe8d2cc
No known key found for this signature in database
GPG Key ID: 948C15655A7915C5

View File

@ -352,6 +352,10 @@ export default class Connection {
}
async _OnAuthAsync(challenge: string): Promise<void> {
if(!this.Settings.read) {
return;
}
const authCleanup = () => {
this.AwaitingAuth.delete(challenge)
}