Before this change, if the --max-duration limit was reached then rclone would retry the sync as a fatal error wasn't raised. This checks the deadline and raises a fatal error if necessary at the end of the sync. Fixes #6002
Before this change, if the --max-duration limit was reached then rclone would retry the sync as a fatal error wasn't raised. This checks the deadline and raises a fatal error if necessary at the end of the sync. Fixes #6002