mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
fix wisp adapter crash when a stream starts buffering
This commit is contained in:
parent
1a1afab08d
commit
081b1eaafd
1 changed files with 4 additions and 2 deletions
|
|
@ -94,10 +94,12 @@ WispNetworkAdapter.prototype.process_incoming_wisp_frame = function(frame) {
|
|||
}
|
||||
|
||||
if(this.connections[stream_id].congested) {
|
||||
for(const packet of this.congested_buffer) {
|
||||
const buffer = this.congested_buffer.slice(0);
|
||||
this.congested_buffer.length = 0;
|
||||
this.connections[stream_id].congested = false;
|
||||
for(const packet of buffer) {
|
||||
this.send_packet(packet.data, packet.type, stream_id);
|
||||
}
|
||||
this.connections[stream_id].congested = false;
|
||||
}
|
||||
break;
|
||||
case 4: // CLOSE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue