(self, hook: commands.StartHook)
| 67 | self.log_prefix = f"{human.format_address(self.client.peername)}: " |
| 68 | |
| 69 | async def handle_hook(self, hook: commands.StartHook) -> None: |
| 70 | with self.timeout_watchdog.disarm(): |
| 71 | # We currently only support single-argument hooks. |
| 72 | (data,) = hook.args() |
| 73 | await self.master.addons.handle_lifecycle(hook) |
| 74 | if isinstance(data, flow.Flow): |
| 75 | await data.wait_for_resume() # pragma: no cover |
| 76 | |
| 77 | |
| 78 | M = TypeVar("M", bound=mode_specs.ProxyMode) |
nothing calls this directly
no test coverage detected