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 14b6e2d + c006ff4 commit 298d510Copy full SHA for 298d510
RabbitMQ.Stream.Client/Client.cs
@@ -976,11 +976,13 @@ public bool RunContinuationsAsynchronously
976
public void SetException(Exception error)
977
{
978
// https://github.com/rabbitmq/rabbitmq-stream-dotnet-client/issues/384
979
- // we need to check if the task is pending before setting the exception
980
- if (_logic.GetStatus(_logic.Version) == ValueTaskSourceStatus.Pending)
+ try
981
982
_logic.SetException(error);
983
}
+ catch (InvalidOperationException)
984
+ {
985
+ }
986
987
988
void IValueTaskSource.GetResult(short token) => _logic.GetResult(token);
0 commit comments