[Modify] Polish it

This commit is contained in:
sta 2019-06-24 21:49:21 +09:00
parent 8357ed025c
commit b0cb2ad93e

View File

@ -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