Skip to content

Commit

Permalink
[RTL13] Fix existing impl. for server sent DETACH
Browse files Browse the repository at this point in the history
1. Removed use of explicitly setting detached state
  • Loading branch information
sacOO7 committed Dec 12, 2024
1 parent 2c0f111 commit 2479c47
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/src/main/java/io/ably/lib/realtime/ChannelBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,6 @@ void onChannelMessage(ProtocolMessage msg) {
case attached:
case suspended: //RTL13a
/* Unexpected detach, reattach when possible */
setDetached((msg.error != null) ? msg.error : REASON_NOT_ATTACHED);
Log.v(TAG, String.format(Locale.ROOT, "Server initiated detach for channel %s; attempting reattach", name));
try {
attachWithTimeout(null);
Expand Down

0 comments on commit 2479c47

Please sign in to comment.