From 2479c4731f07e70f9e2016aa18ad5649f07d4689 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Thu, 12 Dec 2024 18:27:29 +0530 Subject: [PATCH] [RTL13] Fix existing impl. for server sent DETACH 1. Removed use of explicitly setting detached state --- lib/src/main/java/io/ably/lib/realtime/ChannelBase.java | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java b/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java index 9e0c9974c..4fd618bb9 100644 --- a/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java +++ b/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java @@ -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);