diff --git a/grizzly/services/webtransport/core.py b/grizzly/services/webtransport/core.py index 1cfe8d63..d63ffaa0 100644 --- a/grizzly/services/webtransport/core.py +++ b/grizzly/services/webtransport/core.py @@ -64,15 +64,7 @@ def url(self, _query): async def is_ready(self): """Wait until the service is ready""" - while True: - try: - await asyncio.wait_for( - _connect_to_server("127.0.0.1", self.port), timeout=1.0 - ) - except asyncio.TimeoutError: - pass - else: - return + await _connect_to_server("127.0.0.1", self.port) def start(self) -> None: """Start the server."""