Skip to content

Commit

Permalink
complete: fix a task scheduling bug of referencing two different clocks
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Mar 7, 2022
1 parent c375fbb commit df9f932
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/core-complete.sh
Expand Up @@ -4071,11 +4071,7 @@ function ble/complete/auto-complete.idle {
[[ $_ble_edit_str ]] || return 0

# bleopt_complete_auto_delay だけ経過してから処理
local rest_delay=$((bleopt_complete_auto_delay-ble_util_idle_elapsed))
if ((rest_delay>0)); then
ble/util/idle.sleep "$rest_delay"
return
fi
ble/util/idle.sleep-until $((_idle_clock_start+bleopt_complete_auto_delay)) checked && return 0

ble/complete/auto-complete.impl
}
Expand Down

0 comments on commit df9f932

Please sign in to comment.