Don't rerun dataflow blocks when the facet they belong to is terminated
This commit is contained in:
parent
f0e679585f
commit
ed20317225
|
@ -730,7 +730,9 @@ Facet.prototype.addDataflow = function (subjectFun, priority) {
|
||||||
return this.addEndpoint(() => {
|
return this.addEndpoint(() => {
|
||||||
let subjectId = this.actor.dataspace.dataflow.currentSubjectId;
|
let subjectId = this.actor.dataspace.dataflow.currentSubjectId;
|
||||||
this.actor.scheduleScript(() => {
|
this.actor.scheduleScript(() => {
|
||||||
this.actor.dataspace.dataflow.withSubject(subjectId, () => subjectFun.call(this.fields));
|
if (this.isLive) {
|
||||||
|
this.actor.dataspace.dataflow.withSubject(subjectId, () => subjectFun.call(this.fields));
|
||||||
|
}
|
||||||
}, priority);
|
}, priority);
|
||||||
return [void 0, null];
|
return [void 0, null];
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue