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

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