985889 - do not attempt to cancel non-running sync task
Merge pull request #2977 from jlsherrill/985889

985889 - do not attempt to cancel non-running sync task