The DoWork method should only call Task.Start for tasks that have only been created. #6

Merged
merged 1 commit into from Nov 6, 2012

Projects

None yet

2 participants

@jrusbatch
Contributor

Task.Start() will throw an InvalidOperationException if the task has already been scheduled to run, is running, or has already completed. Therefore, it should only be called if the task is not in any of those states.

@Haacked Haacked merged commit 390ce73 into NuGet:master Nov 6, 2012
@Haacked
Member
Haacked commented Nov 6, 2012

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment