diff options
-rw-r--r-- | web/share/js/kvm/session.js | 7 |
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); } }; |