mirror of
https://github.com/nvms/prsm.git
synced 2025-12-16 16:10:54 +00:00
respect shouldReconnect immediately
This commit is contained in:
parent
0ecaaddef4
commit
af47133077
Binary file not shown.
@ -27,6 +27,6 @@
|
|||||||
"types": "module",
|
"types": "module",
|
||||||
"typings": "./dist/index.d.ts",
|
"typings": "./dist/index.d.ts",
|
||||||
"dependencies": {
|
"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() {
|
private async reconnect() {
|
||||||
if (this.isReconnecting) {
|
if (!this.options.shouldReconnect || this.isReconnecting) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user