David Aurelio ee607f8ecf Fix double callback invocation in ModuleGraph/Graph
Summary:
The logic in `ModuleGraph/Graph` allowed the callback to be invoked twice, if two invocations of `resolve` call back with errors asynchronously.

This fixes that problem by always calling `queue.kill()` on the asynchronous queue, and only invoke the main callback from the `drain` and `error` queue callbacks.

Reviewed By: jeanlauliac

Differential Revision: D4236797

fbshipit-source-id: c30da7bf7707e13b11270bb2c6117997fd35b029
2016-11-30 03:13:40 -08:00
..
2016-11-17 08:58:55 -08:00
2016-09-14 10:28:34 -07:00
2016-09-14 10:28:34 -07:00
2016-11-17 08:58:55 -08:00