summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/session.js
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-06-07 19:15:47 +0300
committerMaxim Devaev <[email protected]>2023-06-07 19:15:47 +0300
commit226e5cf8ce9fd7adcffd855f66f53354a15ba4fd (patch)
tree188af541efd3312074d4f3bf9326af9a7eee26fc /web/share/js/kvm/session.js
parent9f98a2f701703a3f9f591868547c834463d3d6b1 (diff)
fix
Diffstat (limited to 'web/share/js/kvm/session.js')
-rw-r--r--web/share/js/kvm/session.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js
index 277e786d..aed82325 100644
--- a/web/share/js/kvm/session.js
+++ b/web/share/js/kvm/session.js
@@ -408,12 +408,7 @@ export function Session() {
}
__ws.send("{\"event_type\": \"ping\", \"event\": {}}");
} catch (err) {
- tools.error("Session: ping error:", err.message);
- if (__ws) {
- __ws.onclose = null;
- __ws.close();
- __wsCloseHandler(null);
- }
+ __wsErrorHandler(err.message);
}
};