Skip to content

Commit f9128fa

Browse files
authored
It did not automatically reconnect
It did not automatically reconnect when server closed the connection.… erizet#7
1 parent d584d9c commit f9128fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

EventSource4Net/ConnectedState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public Task<IConnectionState> Run(Action<ServerSentEvent> msgReceived, Cancellat
4747
{
4848
_logger.Trace(ex, "ConnectedState.Run");
4949
}
50-
if (!cancelToken.IsCancellationRequested)
50+
if (!cancelToken.IsCancellationRequested && !taskRead.IsFaulted)
5151
{
5252
int bytesRead = taskRead.Result;
5353
if (bytesRead > 0) // stream has not reached the end yet

0 commit comments

Comments
 (0)