[Modify] Polish it
This commit is contained in:
parent
47e53eda0b
commit
49a090413b
@ -331,12 +331,14 @@ namespace WebSocketSharp
|
||||
Stream destination,
|
||||
int bufferLength,
|
||||
Action completed,
|
||||
Action<Exception> error)
|
||||
Action<Exception> error
|
||||
)
|
||||
{
|
||||
var buff = new byte[bufferLength];
|
||||
|
||||
AsyncCallback callback = null;
|
||||
callback = ar => {
|
||||
callback =
|
||||
ar => {
|
||||
try {
|
||||
var nread = source.EndRead (ar);
|
||||
if (nread <= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user