tactivos / grunt-cdn

79 stars 53 forks source link

async done not executed when all jobs are finished #41

Closed lcalvy closed 8 years ago

lcalvy commented 10 years ago

Hi,

There is a big bug because async done() is executed several times because included in a loop of jobs. It's not a problem if the task is used in last. In my case it's hurt the next tasks.

pwalczyszyn commented 10 years ago

+1 I made exactly same patch, I will not be pushing my own pull request in this case ;) A workaround to this issue is to have a separate task for each file, which is not really ideal when you have multiple files to process.

johnnyhalife commented 10 years ago

hi @lcalvy I've just pushed a new version, and I cannot merge this directly. Can you please rebase and check.

thanks, ~Johnny