()
| 95 | } |
| 96 | |
| 97 | private stopConnectLoop() { |
| 98 | this.#connecting = false |
| 99 | |
| 100 | if (this.#connectIntervalId === null) { |
| 101 | return |
| 102 | } |
| 103 | clearInterval(this.#connectIntervalId) |
| 104 | this.#connectIntervalId = null |
| 105 | this.#queuedEvents = [] |
| 106 | this.debugLog('Stopped connect loop') |
| 107 | } |
| 108 | |
| 109 | private debugLog(...args: Array<any>) { |
| 110 | if (this.#debug) { |