File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/libraries/System.Net.WebSockets/src/System/Net/WebSockets Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ public class WebSocketStream : Stream
16
16
private const int DefaultCloseTimeoutSeconds = 60 ;
17
17
18
18
/// <summary>Whether the stream has been disposed.</summary>
19
- private protected bool _disposed ;
19
+ private bool _disposed ;
20
20
21
21
/// <summary>
22
22
/// Initializes a new instance of the <see cref="WebSocketStream"/> class using a specified <see cref="WebSocket"/> instance.
23
23
/// </summary>
24
24
/// <param name="webSocket">The <see cref="WebSocket"/> wrapped by this instance.</param>
25
- private protected WebSocketStream ( WebSocket webSocket ) => WebSocket = webSocket ;
25
+ private WebSocketStream ( WebSocket webSocket ) => WebSocket = webSocket ;
26
26
27
27
/// <summary>Creates a <see cref="WebSocketStream"/> that delegates to a wrapped <see cref="WebSocket"/>.</summary>
28
28
/// <param name="webSocket">The wrapped <see cref="WebSocket"/>.</param>
@@ -249,7 +249,7 @@ public override async ValueTask DisposeAsync()
249
249
250
250
if ( _closeTimeout is { } timeout )
251
251
{
252
- if ( WebSocket . State is < WebSocketState . CloseSent )
252
+ if ( WebSocket . State is < WebSocketState . Closed )
253
253
{
254
254
CancellationTokenSource ? cts = null ;
255
255
CancellationToken ct ;
You can’t perform that action at this time.
0 commit comments