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