Repair websocket end-of-stream

This commit is contained in:
Tony Garnock-Jones 2021-08-19 15:48:57 -04:00
parent 3cd6bd5e53
commit 31242f14ca
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ fn extract_binary_packets(
Message::Pong(_) =>
Ok(None), // unsolicited pongs are to be ignored
Message::Close(_) =>
Err("EOF")?,
Ok(None), // we're about to see the end of the stream, so ignore this
},
Err(e) => Err(message_error(e)),
}