Handle socket error state better

This commit is contained in:
Jon Staab
2025-06-04 20:18:03 -07:00
parent 59db0eda9d
commit fa815ff87a
3 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ export class AuthState extends EventEmitter {
}
}),
on(socket, SocketEvent.Status, (status: SocketStatus) => {
if (status === SocketStatus.Closed) {
if (status === SocketStatus.Closed || status === SocketStatus.Error) {
this.challenge = undefined
this.request = undefined
this.details = undefined