mirror of
https://github.com/rclone/rclone.git
synced 2026-02-19 19:03:27 +00:00
It was possible in the presence of --max-connections and recursive calls to the pacer to deadlock it leaving all connections waiting on either a max connection token or a pacer token. This fixes the problem by making sure we return the pacer token on schedule if we take it. This also short circuits the pacer token if sleepTime is 0.