This commit is contained in:
陆柯 2021-03-24 10:25:12 +08:00
parent 345e924fc5
commit 3b82c0da98

View File

@ -60,7 +60,7 @@ const DAD = (module.exports = class RpcSocket extends ws {
}
reconnectAsync(url) {
if (this.readyState < ws.CLOSING) {
if (this.readyState === ws.CONNECTING || this.readyState === ws.OPEN) {
return Promise.resolve(this)
}
return new Promise((resolve, reject) => {