[Modify] Polish it
This commit is contained in:
parent
c8f022fb8f
commit
a5e9b0cb17
@ -489,8 +489,10 @@ namespace WebSocketSharp.Net
|
||||
/// </exception>
|
||||
public Stream OutputStream {
|
||||
get {
|
||||
if (_disposed)
|
||||
throw new ObjectDisposedException (GetType ().ToString ());
|
||||
if (_disposed) {
|
||||
var name = GetType ().ToString ();
|
||||
throw new ObjectDisposedException (name);
|
||||
}
|
||||
|
||||
if (_outputStream == null)
|
||||
_outputStream = _context.Connection.GetResponseStream ();
|
||||
|
Loading…
Reference in New Issue
Block a user