This commit is contained in:
Maxim Devaev 2023-06-07 19:15:47 +03:00
parent 9f98a2f701
commit 226e5cf8ce

View File

@ -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);
}
} }
}; };