Skip to content

Commit

Permalink
fix async signal handling
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvonthenen committed Jun 12, 2024
1 parent dbea6e8 commit bee1f98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/edge_cases/auto_flush/async_microphone_mute/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ async def main():

for signal in (SIGTERM, SIGINT):
loop.add_signal_handler(
signal,
lambda: asyncio.create_task(
lambda signal=signal: asyncio.create_task(
shutdown(signal, loop, dg_connection, microphone)
),
)
Expand Down

0 comments on commit bee1f98

Please sign in to comment.