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 20d0a81 commit 4262ec5Copy full SHA for 4262ec5
src/KubernetesClient/LeaderElection/LeaderElector.cs
@@ -214,7 +214,7 @@ private async Task AcquireAsync(CancellationToken cancellationToken)
214
else
215
{
216
// else timeout
217
- _ = acq.ContinueWith(t => _ = t.Exception /* prevent UnobservedTaskException */, TaskContinuationOptions.OnlyOnFaulted);
+ _ = acq.ContinueWith(t => OnError?.Invoke(t.Exception), TaskContinuationOptions.OnlyOnFaulted);
218
}
219
220
finally
0 commit comments