Update BindHandler.java

This commit is contained in:
远方夕阳 2014-10-31 09:58:20 +08:00
parent ec645fb9a2
commit e886bd9019

View File

@ -43,6 +43,7 @@ public class BindHandler implements CIMRequestHandler {
/**
* 由于客户端断线服务端可能会无法获知的情况客户端重连时需要关闭旧的连接
*/
CIMSession oldSession = sessionManager.getSession(account);
//如果是账号已经在另一台终端登录则让另一个终端下线
if(oldSession!=null&&!oldSession.equals(newSession))
{