mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
fix
This commit is contained in:
parent
9f98a2f701
commit
226e5cf8ce
@ -408,12 +408,7 @@ export function Session() {
|
|||||||
}
|
}
|
||||||
__ws.send("{\"event_type\": \"ping\", \"event\": {}}");
|
__ws.send("{\"event_type\": \"ping\", \"event\": {}}");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
tools.error("Session: ping error:", err.message);
|
__wsErrorHandler(err.message);
|
||||||
if (__ws) {
|
|
||||||
__ws.onclose = null;
|
|
||||||
__ws.close();
|
|
||||||
__wsCloseHandler(null);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user