Decouple simulation from CultMesh publication
This commit is contained in:
parent
96923e1dd0
commit
ac241671d2
1 changed files with 1 additions and 6 deletions
|
|
@ -1195,12 +1195,7 @@ static async Task RunClientCultMeshPumpAsync(
|
|||
{
|
||||
while (!cancellationToken.IsCancellationRequested)
|
||||
{
|
||||
var delivered = false;
|
||||
for (var i = 0; i < 64; i++)
|
||||
{
|
||||
delivered |= await server.PollOnceAsync().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
var delivered = await server.PollOnceAsync().ConfigureAwait(false);
|
||||
server.PollResends();
|
||||
if (!delivered)
|
||||
await Task.Delay(1, cancellationToken).ConfigureAwait(false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue