[Modify] Polish it
This commit is contained in:
@@ -123,7 +123,7 @@ namespace WebSocketSharp
|
|||||||
internal ushort Code {
|
internal ushort Code {
|
||||||
get {
|
get {
|
||||||
if (!_codeSet) {
|
if (!_codeSet) {
|
||||||
_code = _length > 1
|
_code = _length >= 2
|
||||||
? _data.SubArray (0, 2).ToUInt16 (ByteOrder.Big)
|
? _data.SubArray (0, 2).ToUInt16 (ByteOrder.Big)
|
||||||
: (ushort) 1005;
|
: (ushort) 1005;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user