Skip to content

Commit cfd6bbd

Browse files
committed
fix: #144
1 parent cb70195 commit cfd6bbd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

realtime/src/main/java/cn/leancloud/session/AVConnectionManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ public void onOpen(WebSocketClient client) {
316316
LOGGER.d("webSocket(client=" + client + ") established...");
317317
connectionEstablished = true;
318318
retryConnectionCount = 0;
319-
resetConnectingStatus(true);
320319

321320
// auto send login packet.
322321
if (!AVIMOptions.getGlobalOptions().isDisableAutoLogin4Push()) {
@@ -331,6 +330,9 @@ public void onOpen(WebSocketClient client) {
331330
}
332331

333332
initSessionsIfExists();
333+
334+
resetConnectingStatus(true);
335+
334336
for (AVConnectionListener listener: connectionListeners.values()) {
335337
listener.onWebSocketOpen();
336338
}

0 commit comments

Comments
 (0)