From 787c740fda21993d83d35e3c1536b37811ca406d Mon Sep 17 00:00:00 2001 From: Bill Al Date: Thu, 18 Jun 2026 14:24:03 -0700 Subject: [PATCH] moved retry error to connect SSE block --- src/Splitio/Services/EventSource/EventSourceClient.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Splitio/Services/EventSource/EventSourceClient.cs b/src/Splitio/Services/EventSource/EventSourceClient.cs index 7a98db36..d1d36048 100644 --- a/src/Splitio/Services/EventSource/EventSourceClient.cs +++ b/src/Splitio/Services/EventSource/EventSourceClient.cs @@ -128,18 +128,17 @@ private async Task ConnectAsync() catch (Exception ex) { _log.Debug($"Error connecting to {_url}.", ex); - } - finally - { - _disconnectSignal.Signal(); - - _log.Debug("Finished Event Source client ConnectAsync."); if (!_statusManager.IsDestroyed()) { _log.Debug("Stream closed unexpectedly, proceeding to reconnect."); await _notificationManagerKeeper.HandleSseStatus(SSEClientStatusMessage.RETRYABLE_ERROR); } } + finally + { + _disconnectSignal.Signal(); + _log.Debug("Finished Event Source client ConnectAsync."); + } } private async Task ReadStreamAsync()