Always flush in WebSocketsTransport (#1756)
This commit is contained in:
parent
eb2fa9bacd
commit
d5dafae2cc
|
|
@ -208,16 +208,13 @@ namespace Microsoft.AspNetCore.Sockets.Client.Internal
|
||||||
|
|
||||||
_application.Output.Advance(receiveResult.Count);
|
_application.Output.Advance(receiveResult.Count);
|
||||||
|
|
||||||
if (receiveResult.EndOfMessage)
|
var flushResult = await _application.Output.FlushAsync();
|
||||||
{
|
|
||||||
var flushResult = await _application.Output.FlushAsync();
|
|
||||||
|
|
||||||
// We canceled in the middle of applying back pressure
|
// We canceled in the middle of applying back pressure
|
||||||
// or if the consumer is done
|
// or if the consumer is done
|
||||||
if (flushResult.IsCanceled || flushResult.IsCompleted)
|
if (flushResult.IsCanceled || flushResult.IsCompleted)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue