Skip to content

Commit 450d2f1

Browse files
authored
Merge pull request #40 from froyomu/master
增强是否已连接判断逻辑;
2 parents 56367e2 + bc4f4c9 commit 450d2f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

imlib/src/main/java/com/qunar/im/ui/sdk/QIMSdk.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,9 @@ public void goToGroupConv(Context context, String jid, int chatType) {
230230
* @return
231231
*/
232232
public boolean isConnected() {
233-
return ConnectionUtil.getInstance().isLoginStatus();
233+
return ConnectionUtil.getInstance().isLoginStatus() && ConnectionUtil.getInstance().isConnected();
234234
}
235235

236-
237236
public boolean isCanAutoLogin(){
238237
return ConnectionUtil.getInstance().isCanAutoLogin();
239238
}

0 commit comments

Comments
 (0)