allow for Delayer recursion

fixes #4071
This commit is contained in:
Joao Moreno
2016-03-16 16:49:04 +01:00
parent 567d444c0a
commit b8a2744805
+2 -3
View File
@@ -157,11 +157,10 @@ export class Delayer<T> {
}).then(() => {
this.completionPromise = null;
this.onSuccess = null;
const result = this.task();
const task = this.task;
this.task = null;
return result;
return task();
});
}