Drain CultMesh transport work before idling
This commit is contained in:
parent
0c2ebcfcd2
commit
7d89693dcf
4 changed files with 14 additions and 14 deletions
|
|
@ -1258,9 +1258,9 @@ static async Task RunClientCultMeshPumpAsync(
|
|||
{
|
||||
while (!cancellationToken.IsCancellationRequested)
|
||||
{
|
||||
var delivered = await server.PollOnceAsync().ConfigureAwait(false);
|
||||
var poll = await server.PollAvailableAsync(256).ConfigureAwait(false);
|
||||
server.PollResends();
|
||||
if (!delivered)
|
||||
if (poll.TransportItemsConsumed == 0)
|
||||
await Task.Delay(1, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue