[Modify] Polish it
This commit is contained in:
parent
beb3a14976
commit
8d94a28a2e
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user