Simplify. Why didn't I do it like this before?
This commit is contained in:
parent
3823d3172c
commit
08197626a6
|
@ -312,13 +312,9 @@ export class Turn {
|
|||
}
|
||||
|
||||
stop(facet: Facet = this.activeFacet, continuation?: LocalAction) {
|
||||
if (facet.parent === null) {
|
||||
this.stopActor();
|
||||
} else {
|
||||
if (continuation) facet.onStop(continuation);
|
||||
facet._terminate(true);
|
||||
}
|
||||
}
|
||||
|
||||
// Alias for syndicatec code generator to use
|
||||
_spawn(bootProc: LocalAction, initialAssertions = new IdentitySet<Handle>()): Actor {
|
||||
|
|
Loading…
Reference in New Issue