From cc07c68ef0f54b04fa1a75305a805d56645f06fc Mon Sep 17 00:00:00 2001 From: Marat Al Date: Sun, 5 Nov 2023 18:52:55 +0100 Subject: [PATCH] Removed unnecessary re-attach attempt. --- Source/ARTRealtimeChannel.m | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Source/ARTRealtimeChannel.m b/Source/ARTRealtimeChannel.m index c5d4195c5..101ad8c8c 100644 --- a/Source/ARTRealtimeChannel.m +++ b/Source/ARTRealtimeChannel.m @@ -1050,16 +1050,6 @@ - (void)attachAfterChecks:(ARTCallback)callback channelSerial:(NSString *)channe [self setSuspended:metadata]; }] startTimer]; } ackCallback:nil]; - - if (![self.realtime shouldQueueEvents]) { - ARTEventListener *reconnectedListener = [self.realtime.connectedEventEmitter once:^(NSNull *n) { - // Disconnected and connected while attaching, re-attach. - [self attachAfterChecks:callback channelSerial:channelSerial]; - }]; - [_attachedEventEmitter once:^(ARTErrorInfo *err) { - [self.realtime.connectedEventEmitter off:reconnectedListener]; - }]; - } } - (void)detach:(ARTCallback)callback {