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