Simplify
This commit is contained in:
parent
a813780e8d
commit
04d46585fd
|
@ -333,9 +333,6 @@ class Turn:
|
||||||
def stop(self, facet = None, continuation = None):
|
def stop(self, facet = None, continuation = None):
|
||||||
if facet is None:
|
if facet is None:
|
||||||
facet = self._facet
|
facet = self._facet
|
||||||
if facet.parent is None:
|
|
||||||
self.stop_actor()
|
|
||||||
else:
|
|
||||||
if continuation is not None:
|
if continuation is not None:
|
||||||
facet.on_stop(continuation)
|
facet.on_stop(continuation)
|
||||||
facet._terminate(True)
|
facet._terminate(True)
|
||||||
|
|
Loading…
Reference in New Issue