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.
2 parents ee794f9 + 48b9910 commit 72837c5Copy full SHA for 72837c5
projects/RabbitMQ.Client/Impl/AutorecoveringConnection.cs
@@ -292,6 +292,20 @@ public async ValueTask DisposeAsync()
292
return;
293
}
294
295
+ try
296
+ {
297
+#if NETSTANDARD2_0
298
+ _recoveryCancellationTokenSource.Cancel();
299
+#else
300
+ await _recoveryCancellationTokenSource.CancelAsync()
301
+ .ConfigureAwait(false);
302
+#endif
303
+ }
304
+ catch
305
306
+ // Ensure dispose does not throw any exceptions.
307
308
+
309
try
310
{
311
await _innerConnection.DisposeAsync()
0 commit comments