Skip to content

Commit 59fa942

Browse files
remove unnecessary early exit
1 parent 7cff0ff commit 59fa942

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

nicegui/client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ async def connected(self, timeout: float | None = None) -> None:
208208
is_prefetch = 'prefetch' in purpose and 'prerender' not in purpose
209209
try:
210210
await asyncio.wait_for(self._connected.wait(), timeout=None if is_prefetch else timeout)
211-
if self._deleted:
212-
return # Client was deleted while waiting for connection
213211
except asyncio.TimeoutError as e:
214212
raise ClientConnectionTimeout(self) from e
215213

0 commit comments

Comments
 (0)