[Modify] Polish it
This commit is contained in:
parent
49a090413b
commit
e5fefd3abf
@ -319,10 +319,14 @@ namespace WebSocketSharp
|
||||
)
|
||||
{
|
||||
var buff = new byte[bufferLength];
|
||||
var nread = source.Read (buff, 0, bufferLength);
|
||||
while (nread > 0) {
|
||||
destination.Write (buff, 0, nread);
|
||||
var nread = 0;
|
||||
|
||||
while (true) {
|
||||
nread = source.Read (buff, 0, bufferLength);
|
||||
if (nread <= 0)
|
||||
break;
|
||||
|
||||
destination.Write (buff, 0, nread);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user