mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
LibWebSocket: Remove some accidentally included debug logic
This commit is contained in:
parent
6e68e8f3c9
commit
c0beacbb76
Notes:
github-actions[bot]
2024-10-16 12:23:24 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/c0beacbb76f Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1826
1 changed files with 0 additions and 9 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue