Fix a few for Chunk.cs
This commit is contained in:
parent
22778052f3
commit
142fc2213d
@ -61,15 +61,9 @@ namespace WebSocketSharp.Net
|
||||
|
||||
#region Public Properties
|
||||
|
||||
public int Length {
|
||||
public int ReadLeft {
|
||||
get {
|
||||
return _data.Length;
|
||||
}
|
||||
}
|
||||
|
||||
public int Offset {
|
||||
get {
|
||||
return _offset;
|
||||
return _data.Length - _offset;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -134,7 +134,7 @@ namespace WebSocketSharp.Net
|
||||
if (chunk == null)
|
||||
continue;
|
||||
|
||||
if (chunk.Offset == chunk.Length) {
|
||||
if (chunk.ReadLeft == 0) {
|
||||
_chunks [i] = null;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user