LibWebSocket: Remove some accidentally included debug logic

This commit is contained in:
Tim Ledbetter 2024-10-16 13:18:13 +01:00 committed by Tim Ledbetter
parent 6e68e8f3c9
commit c0beacbb76
Notes: github-actions[bot] 2024-10-16 12:23:24 +00:00

View file

@ -483,15 +483,6 @@ void WebSocket::read_frame()
}
if (op_code == WebSocket::OpCode::ConnectionClose) {
dbgln("Close connection with status: {}", to_underlying(m_state));
if (m_state == InternalState::Closing) {
dbgln("Close connection lmao");
set_state(WebSocket::InternalState::Closed);
notify_close(m_last_close_code, m_last_close_message, true);
discard_connection();
return;
}
send_frame(WebSocket::OpCode::ConnectionClose, {}, true);
set_state(WebSocket::InternalState::Closing);
if (payload.size() > 1) {