We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89ab4cd commit 4c40fd1Copy full SHA for 4c40fd1
src/IO.Ably.Shared/Realtime/Workflows/RealtimeWorkflow.cs
@@ -825,14 +825,9 @@ ErrorInfo TransformIfTokenErrorAndNotRetryable()
825
826
async Task<(bool retry, bool clearKey)> GetDisconnectFlags()
827
{
828
- if (cmd.RetryInstantly)
829
- {
830
- return (true, cmd.ClearConnectionKey);
831
- }
832
-
833
if ((cmd.Error != null && cmd.Error.IsRetryableStatusCode()) || cmd.Exception != null)
834
835
- return (await Client.RestClient.CanConnectToAbly(), true);
+ return (await Client.RestClient.CanConnectToAbly(), cmd.ClearConnectionKey);
836
}
837
838
return (false, cmd.ClearConnectionKey);
0 commit comments