Fix connection error, bump versions

This commit is contained in:
Jon Staab
2024-11-18 17:26:13 -08:00
parent 2de2d24e0b
commit 75e0d0603b
6 changed files with 11 additions and 12 deletions
+1 -2
View File
@@ -55,9 +55,8 @@ export class Socket {
}
// If we're closed due to an error retry after a delay
if (Date.now() - this.lastError > 15_000) {
if (this.status === Error && Date.now() - this.lastError > 15_000) {
this.status = New
this.lastError = 0
this.cxn.emit(ConnectionEvent.Reset)
}