From 6f2708dca5f992a885e9b18ae7d08b6b1e047bc3 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 7 Dec 2016 16:50:50 +0900 Subject: [PATCH] [Modify] Use ManualResetEvent instead --- websocket-sharp/WebSocket.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 8166a6dd..eb0e1cfe 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -78,7 +78,7 @@ namespace WebSocketSharp private NetworkCredential _credentials; private bool _emitOnPing; private bool _enableRedirection; - private AutoResetEvent _exitReceiving; + private ManualResetEvent _exitReceiving; private string _extensions; private bool _extensionsRequested; private object _forMessageEventQueue; @@ -106,7 +106,7 @@ namespace WebSocketSharp private NetworkCredential _proxyCredentials; private Uri _proxyUri; private volatile WebSocketState _readyState; - private AutoResetEvent _receivePong; + private ManualResetEvent _receivePong; private int _retryCountForConnect; private bool _secure; private ClientSslConfiguration _sslConfig; @@ -1872,8 +1872,8 @@ namespace WebSocketSharp if (_messageEventQueue.Count > 0) _messageEventQueue.Clear (); - _exitReceiving = new AutoResetEvent (false); - _receivePong = new AutoResetEvent (false); + _exitReceiving = new ManualResetEvent (false); + _receivePong = new ManualResetEvent (false); Action receive = null; receive =