Skip to content

Commit

Permalink
Fix example of shutting down a client.
Browse files Browse the repository at this point in the history
Fix #1261.
  • Loading branch information
aaugustin committed Nov 11, 2022
1 parent 591d047 commit 9e960b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/shutdown_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async def client():
# Close the connection when receiving SIGTERM.
loop = asyncio.get_running_loop()
loop.add_signal_handler(
signal.SIGTERM, loop.create_task, websocket.close())
signal.SIGTERM, loop.create_task, websocket.close)

# Process messages received on the connection.
async for message in websocket:
Expand Down

0 comments on commit 9e960b5

Please sign in to comment.