Bug 995458 - Only calls the last callback of an async operation r=jaoo

https://bugzilla.mozilla.org/show_bug.cgi?id=995458