Fix for issue #34

This commit is contained in:
sta 2014-03-23 17:05:02 +09:00
parent d87e60c146
commit 6eead5d317

View File

@ -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 ();