Fix a few for WebSocket.cs
This commit is contained in:
@@ -794,8 +794,6 @@ namespace WebSocketSharp
|
|||||||
_exitReceiving = null;
|
_exitReceiving = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
_messageEventQueue.Clear ();
|
|
||||||
|
|
||||||
var result = sent && received;
|
var result = sent && received;
|
||||||
_logger.Debug (
|
_logger.Debug (
|
||||||
String.Format ("Was clean?: {0}\nsent: {1} received: {2}", result, sent, received));
|
String.Format ("Was clean?: {0}\nsent: {1} received: {2}", result, sent, received));
|
||||||
@@ -1278,6 +1276,9 @@ namespace WebSocketSharp
|
|||||||
|
|
||||||
private void startReceiving ()
|
private void startReceiving ()
|
||||||
{
|
{
|
||||||
|
if (_messageEventQueue.Count > 0)
|
||||||
|
_messageEventQueue.Clear ();
|
||||||
|
|
||||||
_exitReceiving = new AutoResetEvent (false);
|
_exitReceiving = new AutoResetEvent (false);
|
||||||
_receivePong = new AutoResetEvent (false);
|
_receivePong = new AutoResetEvent (false);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user