Fix for issue #34
This commit is contained in:
parent
d87e60c146
commit
6eead5d317
@ -1251,7 +1251,7 @@ namespace WebSocketSharp
|
||||
Action receive = null;
|
||||
receive = () => _stream.ReadFrameAsync (
|
||||
frame => {
|
||||
if (acceptFrame (frame))
|
||||
if (acceptFrame (frame) && _readyState != WebSocketState.Closed)
|
||||
receive ();
|
||||
else if (_exitReceiving != null)
|
||||
_exitReceiving.Set ();
|
||||
|
Loading…
Reference in New Issue
Block a user