mirror of
https://github.com/godotengine/godot.git
synced 2025-01-22 10:32:54 -05:00
Merge pull request #101760 from Faless/ws/fix_endless_closing
[WS] Fix peer stuck in CLOSING state
This commit is contained in:
commit
7a63dc94ae
1 changed files with 6 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue