If escape-time is 0, force to 1 instead - not waiting at all is asking

for problems on some platforms.
pull/3209/head
nicm 2022-06-01 15:43:22 +00:00
parent 74fb959f6d
commit 201a8d8e7e
1 changed files with 2 additions and 0 deletions

View File

@ -798,6 +798,8 @@ partial_key:
/* Get the time period. */
delay = options_get_number(global_options, "escape-time");
if (delay == 0)
delay = 1;
tv.tv_sec = delay / 1000;
tv.tv_usec = (delay % 1000) * 1000L;