Skip to content

Commit 41a31d2

Browse files
committed
minor refactor
Signed-off-by: Jacob Perron <[email protected]>
1 parent 9c4c641 commit 41a31d2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

launch/launch/launch_service.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,7 @@ def _on_exception(loop, context):
363363
timeout=1.0,
364364
return_when=asyncio.FIRST_COMPLETED
365365
)
366-
if process_one_event_task in done:
367-
break
368-
elif len(done) == 0:
366+
if (process_one_event_task in done) or len(done) == 0:
369367
break
370368
entity_futures = set(entity_futures).difference(done)
371369

0 commit comments

Comments
 (0)