mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 14:33:44 +08:00
fix: undefined error
This commit is contained in:
parent
8763a76475
commit
a681fdeee1
@ -23,8 +23,10 @@ export const createSockette = (
|
|||||||
remainRetryCount -= 1;
|
remainRetryCount -= 1;
|
||||||
|
|
||||||
if (remainRetryCount >= 0) {
|
if (remainRetryCount >= 0) {
|
||||||
this.close();
|
if (this instanceof Sockette) {
|
||||||
this.reconnect();
|
this.close();
|
||||||
|
this.reconnect();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
opt.onerror?.call(this, ev);
|
opt.onerror?.call(this, ev);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user