Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ably/realtime/realtime_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,14 @@ async def attach(self) -> None:
self.__error_reason = None

# RTL4b
if self.__realtime.connection.state not in [
connection_state = self.__realtime.connection.state
if connection_state not in [
ConnectionState.CONNECTING,
ConnectionState.CONNECTED,
ConnectionState.DISCONNECTED
]:
raise AblyException(
message=f"Unable to attach; channel state = {self.state}",
message=f"Unable to attach channel; connection state = {connection_state}",
code=90001,
status_code=400
)
Expand Down
Loading