mirror of
https://github.com/nvms/prsm.git
synced 2025-12-16 00:00:52 +00:00
respect shouldReconnect immediately
This commit is contained in:
parent
0ecaaddef4
commit
af47133077
Binary file not shown.
@ -27,6 +27,6 @@
|
||||
"types": "module",
|
||||
"typings": "./dist/index.d.ts",
|
||||
"dependencies": {
|
||||
"@prsm/keepalive-ws": "^0.3.7"
|
||||
"@prsm/keepalive-ws": "^0.3.8"
|
||||
}
|
||||
}
|
||||
|
||||
@ -113,7 +113,7 @@ export class KeepAliveClient extends EventTarget {
|
||||
}
|
||||
|
||||
private async reconnect() {
|
||||
if (this.isReconnecting) {
|
||||
if (!this.options.shouldReconnect || this.isReconnecting) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user