[Modify] Polish it

This commit is contained in:
sta 2018-02-26 17:58:09 +09:00
parent dc6ce0f58a
commit fa502b0e1e

View File

@ -538,11 +538,11 @@ namespace WebSocketSharp.Net
{
// TODO: Can we get this stream before reading the input?
if (_outputStream != null || _socket == null)
return _outputStream;
lock (_sync) {
if (_socket == null)
return null;
if (_outputStream != null)
return _outputStream;
var lsnr = _context.Listener;