We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d644f03 commit 1de5766Copy full SHA for 1de5766
src/GraphQL.Client/GraphQLHttpClient.cs
@@ -188,7 +188,8 @@ protected virtual void Dispose(bool disposing)
188
Debug.WriteLine($"Disposing GraphQLHttpClient on endpoint {Options.EndPoint}");
189
_cancellationTokenSource.Cancel();
190
HttpClient.Dispose();
191
- if(_lazyHttpWebSocket?.HasValue) _lazyHttpWebSocket?.Value.Dispose();
+ if ( (bool)(_lazyHttpWebSocket?.IsValueCreated) )
192
+ _lazyHttpWebSocket?.Value.Dispose();
193
_cancellationTokenSource.Dispose();
194
}
195
0 commit comments