From be3ffcc349a36a4b7d5700b202f911d1ddc66d35 Mon Sep 17 00:00:00 2001 From: zapcannon87 Date: Tue, 30 Oct 2018 18:50:15 +0800 Subject: [PATCH 1/2] Fix IM may not resuming. --- AVOS/AVOSCloudIM/WebSocket/AVIMWebSocketWrapper.m | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/AVOS/AVOSCloudIM/WebSocket/AVIMWebSocketWrapper.m b/AVOS/AVOSCloudIM/WebSocket/AVIMWebSocketWrapper.m index 21a865267..45dc19787 100644 --- a/AVOS/AVOSCloudIM/WebSocket/AVIMWebSocketWrapper.m +++ b/AVOS/AVOSCloudIM/WebSocket/AVIMWebSocketWrapper.m @@ -459,14 +459,19 @@ - (void)webSocket:(AVIMWebSocket *)webSocket didCloseWithCode:(NSInteger)code re mutableDictionary; })]; AVLoggerError(AVLoggerDomainIM, @" websocket did close by remote with error: %@.", webSocket, error); - self->_activatingReconnection = false; [self purgeWithError:error]; if (self->_openCallbacks) { [self invokeOpenCallbacksWithSucceeded:false error:error]; } else { id delegate = self->_delegate; - if ([delegate respondsToSelector:@selector(webSocketWrapper:didCloseWithError:)]) { - [delegate webSocketWrapper:self didCloseWithError:error]; + if (wasClean) { + if ([delegate respondsToSelector:@selector(webSocketWrapper:didCloseWithError:)]) { + [delegate webSocketWrapper:self didCloseWithError:error]; + } + } else { + if ([delegate respondsToSelector:@selector(webSocketWrapperDidPause:)]) { + [delegate webSocketWrapperDidPause:self]; + } } } } From a33ca6ac3fca4847691e6069ce15a618aa4e8640 Mon Sep 17 00:00:00 2001 From: zapcannon87 Date: Tue, 30 Oct 2018 19:00:16 +0800 Subject: [PATCH 2/2] Release v11.4.7 --- AVOS/AVOSCloud/UserAgent.h | 2 +- AVOSCloud.podspec | 2 +- AVOSCloudIM.podspec | 2 +- AVOSCloudLiveQuery.podspec | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AVOS/AVOSCloud/UserAgent.h b/AVOS/AVOSCloud/UserAgent.h index cf555e588..864d832f6 100644 --- a/AVOS/AVOSCloud/UserAgent.h +++ b/AVOS/AVOSCloud/UserAgent.h @@ -1 +1 @@ -#define SDK_VERSION @"v11.4.6" +#define SDK_VERSION @"v11.4.7" diff --git a/AVOSCloud.podspec b/AVOSCloud.podspec index 8173af352..62b237b84 100644 --- a/AVOSCloud.podspec +++ b/AVOSCloud.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AVOSCloud' - s.version = '11.4.6' + s.version = '11.4.7' s.homepage = 'https://leancloud.cn/' s.summary = 'LeanCloud Objective-C SDK' s.authors = 'LeanCloud' diff --git a/AVOSCloudIM.podspec b/AVOSCloudIM.podspec index 8c0e29c8e..e69867407 100644 --- a/AVOSCloudIM.podspec +++ b/AVOSCloudIM.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AVOSCloudIM' - s.version = '11.4.6' + s.version = '11.4.7' s.homepage = 'https://leancloud.cn/' s.summary = 'LeanCloud IM Objective-C SDK' s.authors = 'LeanCloud' diff --git a/AVOSCloudLiveQuery.podspec b/AVOSCloudLiveQuery.podspec index eb6ef2379..0cb1856d4 100644 --- a/AVOSCloudLiveQuery.podspec +++ b/AVOSCloudLiveQuery.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AVOSCloudLiveQuery' - s.version = '11.4.6' + s.version = '11.4.7' s.homepage = 'https://leancloud.cn/' s.summary = 'LeanCloud LiveQuery Objective-C SDK' s.authors = 'LeanCloud'