diff --git a/tractor/_actor.py b/tractor/_actor.py index 3823455..6333091 100644 --- a/tractor/_actor.py +++ b/tractor/_actor.py @@ -868,6 +868,7 @@ class Actor: Schedules `.cancel()` to be run immediately just like when cancelled by the parent. """ + assert self._service_n self._service_n.start_soon(self.cancel) async def cancel(self) -> bool: