Skip to content

Commit 410637e

Browse files
committed
chore: refactor
1 parent 9fd11cf commit 410637e

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/zeroconf/_core.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,7 @@ async def async_wait_for_start(self) -> None:
245245
raise NotRunningException
246246
assert self.engine.running_future is not None
247247
await wait_future_or_timeout(self.engine.running_future, timeout=_STARTUP_TIMEOUT)
248-
if (
249-
not self.engine.running_future.done()
250-
or self.engine.running_future.cancelled()
251-
or self.engine.running_future.exception()
252-
or not self.engine.running_future.result()
253-
or self.done
254-
):
248+
if not self.started:
255249
raise NotRunningException
256250

257251
@property

0 commit comments

Comments
 (0)