[Modify] Polish it
This commit is contained in:
parent
8357ed025c
commit
b0cb2ad93e
@ -1240,7 +1240,12 @@ namespace WebSocketSharp
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal static void WriteBytesAsync (
|
internal static void WriteBytesAsync (
|
||||||
this Stream stream, byte[] bytes, int bufferLength, Action completed, Action<Exception> error)
|
this Stream stream,
|
||||||
|
byte[] bytes,
|
||||||
|
int bufferLength,
|
||||||
|
Action completed,
|
||||||
|
Action<Exception> error
|
||||||
|
)
|
||||||
{
|
{
|
||||||
var input = new MemoryStream (bytes);
|
var input = new MemoryStream (bytes);
|
||||||
input.CopyToAsync (
|
input.CopyToAsync (
|
||||||
@ -1256,7 +1261,8 @@ namespace WebSocketSharp
|
|||||||
input.Dispose ();
|
input.Dispose ();
|
||||||
if (error != null)
|
if (error != null)
|
||||||
error (ex);
|
error (ex);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user