fix: don't tick resolved TickingPromises

This commit is contained in:
cha0s 2019-06-07 00:14:06 -05:00
parent fab80fec9a
commit 1bd7bc41a3

View File

@ -82,6 +82,9 @@ export class Actions extends decorate(Traversals) {
results.push(result);
if (result instanceof TickingPromise) {
tickingPromises.push(result);
result.then(() => {
tickingPromises.splice(tickingPromises.indexOf(result), 1);
});
}
else if (result instanceof Promise) {
promises.push(result);