[Modify] Polish it
This commit is contained in:
parent
e029fa5c78
commit
82637a8b11
@ -153,8 +153,11 @@ namespace WebSocketSharp.Net
|
|||||||
byte[] buffer, int offset, int count, AsyncCallback callback, object state
|
byte[] buffer, int offset, int count, AsyncCallback callback, object state
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (_disposed)
|
if (_disposed) {
|
||||||
throw new ObjectDisposedException (GetType ().ToString ());
|
var name = GetType ().ToString ();
|
||||||
|
|
||||||
|
throw new ObjectDisposedException (name);
|
||||||
|
}
|
||||||
|
|
||||||
if (buffer == null)
|
if (buffer == null)
|
||||||
throw new ArgumentNullException ("buffer");
|
throw new ArgumentNullException ("buffer");
|
||||||
|
Loading…
Reference in New Issue
Block a user