1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

add changelog entry

This commit is contained in:
Nikolay Kim
2018-04-21 07:56:11 -07:00
parent 805dbea8e7
commit 2adf8a3a48
3 changed files with 10 additions and 4 deletions

View File

@ -310,10 +310,11 @@ where
}
OpCode::Close => {
self.closed = true;
let close_code = if payload.len() >= 2{
let raw_code = NetworkEndian::read_uint(payload.as_ref(), 2) as u16;
let close_code = if payload.len() >= 2 {
let raw_code =
NetworkEndian::read_uint(payload.as_ref(), 2) as u16;
CloseCode::from(raw_code)
}else{
} else {
CloseCode::Status
};