Skip to content

Commit

Permalink
Avoid unnecessary zero-delays in input code (#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored Nov 5, 2019
1 parent 0e4e819 commit 48bdb11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/PuppeteerSharp/Input/Keyboard.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ public async Task TypeAsync(string text, TypeOptions options = null)
}
else
{
if (delay > 0)
{
await Task.Delay(delay).ConfigureAwait(false);
}
await SendCharacterAsync(letter.ToString()).ConfigureAwait(false);
}
if (delay > 0)
{
await Task.Delay(delay).ConfigureAwait(false);
}
}
}

Expand Down

0 comments on commit 48bdb11

Please sign in to comment.