Skip to content

Commit

Permalink
Updated attached impl as per RTL5k
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Dec 7, 2023
1 parent 1b7a72d commit 14cd5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ably/realtime_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ func (c *RealtimeChannel) notify(msg *protocolMessage) {
c.mtx.Lock()
c.properties.AttachSerial = msg.ChannelSerial // RTL15a
c.mtx.Unlock()
if c.State() == ChannelStateDetaching { // RTL5K
if c.State() == ChannelStateDetaching || c.State() == ChannelStateDetached { // RTL5K
c.sendDetachMsg()
return
}
Expand Down

0 comments on commit 14cd5a2

Please sign in to comment.