mirror of
https://github.com/rclone/rclone.git
synced 2025-03-16 01:45:20 +08:00

When rclone is busy doing lots of very long uploads it doesn't refresh the token. Amazon will fail uploads if they finish when the token is more than 1 Hour past expiry. Fix this by keeping track of the number of uploads and refreshing the token when the token expires if there is an upload in progress.