Skip to content

Commit

Permalink
bridge: add missing ProtocolChannel._transport initializer
Browse files Browse the repository at this point in the history
This is the only thing in the class which isn't initialized and it's
causing issues.  Fix that.

Thanks for tracking this down go to Martin as well :)
  • Loading branch information
allisonkarlitskaya committed Aug 13, 2024
1 parent e349031 commit 686a5d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cockpit/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ class ProtocolChannel(Channel, asyncio.Protocol):
Otherwise, if the subclass implements .do_open() itself, it is responsible
for setting up the connection and ensuring that .connection_made() is called.
"""
_transport: 'asyncio.Transport | None'
_transport: 'asyncio.Transport | None' = None
_send_pongs: bool = True
_last_ping: 'JsonObject | None' = None
_create_transport_task: 'asyncio.Task[asyncio.Transport] | None' = None
Expand Down

0 comments on commit 686a5d3

Please sign in to comment.