mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
fix: undefined error
This commit is contained in:
@@ -23,8 +23,10 @@ export const createSockette = (
|
|||||||
remainRetryCount -= 1;
|
remainRetryCount -= 1;
|
||||||
|
|
||||||
if (remainRetryCount >= 0) {
|
if (remainRetryCount >= 0) {
|
||||||
|
if (this instanceof Sockette) {
|
||||||
this.close();
|
this.close();
|
||||||
this.reconnect();
|
this.reconnect();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
opt.onerror?.call(this, ev);
|
opt.onerror?.call(this, ev);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user