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