diff --git a/EventSource4Net/ConnectedState.cs b/EventSource4Net/ConnectedState.cs index 7669993..2cf032f 100644 --- a/EventSource4Net/ConnectedState.cs +++ b/EventSource4Net/ConnectedState.cs @@ -46,6 +46,7 @@ public Task Run(Action msgReceived, Cancellat catch (Exception ex) { _logger.Trace(ex, "ConnectedState.Run"); + return new DisconnectedState(mResponse.ResponseUri, mWebRequesterFactory); } if (!cancelToken.IsCancellationRequested) {