File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public class WebSocket : IDisposable
7878 private NetworkCredential _credentials ;
7979 private bool _emitOnPing ;
8080 private bool _enableRedirection ;
81- private AutoResetEvent _exitReceiving ;
81+ private ManualResetEvent _exitReceiving ;
8282 private string _extensions ;
8383 private bool _extensionsRequested ;
8484 private object _forMessageEventQueue ;
@@ -106,7 +106,7 @@ public class WebSocket : IDisposable
106106 private NetworkCredential _proxyCredentials ;
107107 private Uri _proxyUri ;
108108 private volatile WebSocketState _readyState ;
109- private AutoResetEvent _receivePong ;
109+ private ManualResetEvent _receivePong ;
110110 private int _retryCountForConnect ;
111111 private bool _secure ;
112112 private ClientSslConfiguration _sslConfig ;
@@ -1872,8 +1872,8 @@ private void startReceiving ()
18721872 if ( _messageEventQueue . Count > 0 )
18731873 _messageEventQueue . Clear ( ) ;
18741874
1875- _exitReceiving = new AutoResetEvent ( false ) ;
1876- _receivePong = new AutoResetEvent ( false ) ;
1875+ _exitReceiving = new ManualResetEvent ( false ) ;
1876+ _receivePong = new ManualResetEvent ( false ) ;
18771877
18781878 Action receive = null ;
18791879 receive =
You can’t perform that action at this time.
0 commit comments