Skip to content

Commit 37b27fa

Browse files
author
Alexandre Pita
committed
Refactor event loop handling to simplify logic for Windows platforms
Signed-off-by: Alexandre Pita <[email protected]>
1 parent 784d798 commit 37b27fa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

podman_compose.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -2776,9 +2776,7 @@ async def compose_up(compose: PodmanCompose, args):
27762776
max_service_length = curr_length if curr_length > max_service_length else max_service_length
27772777

27782778
tasks = set()
2779-
if sys.platform == 'win32':
2780-
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
2781-
else:
2779+
if sys.platform != 'win32':
27822780
loop = asyncio.get_event_loop()
27832781
loop.add_signal_handler(signal.SIGINT, lambda: [t.cancel("User exit") for t in tasks])
27842782

0 commit comments

Comments
 (0)