streamlined bad close code behavior

This commit is contained in:
Peter Thorson
2011-10-27 10:06:21 -05:00
parent ccb34c98b4
commit 5f35df4e6e
2 changed files with 12 additions and 16 deletions

View File

@@ -297,11 +297,7 @@ uint16_t frame::get_close_status() const {
reinterpret_cast<uint16_t*>(&val[0])
));
if (close::status::invalid(code)) {
return close::status::PROTOCOL_ERROR;
} else {
return code;
}
return code;
} else {
return close::status::PROTOCOL_ERROR;
}