Merge pull request #101760 from Faless/ws/fix_endless_closing

[WS] Fix peer stuck in CLOSING state
This commit is contained in:
Thaddeus Crews 2025-01-20 10:05:36 -06:00
commit 7a63dc94ae
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84

View file

@ -860,10 +860,12 @@ void WSLPeer::close(int p_code, String p_reason) {
}
}
heartbeat_waiting = false;
in_buffer.clear();
packet_buffer.resize(0);
pending_message.clear();
if (ready_state == STATE_CLOSED) {
heartbeat_waiting = false;
in_buffer.clear();
packet_buffer.resize(0);
pending_message.clear();
}
}
IPAddress WSLPeer::get_connected_host() const {