Fix for issue #34

master
sta 12 years ago
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…
Cancel
Save