Просмотр исходного кода

Merge branch 'beta' of https://git.cocorobo.cn/CocoRoboLabs/CocoRoboDesktop into beta

lsc 1 год назад
Родитель
Сommit
b31698ace3
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      node/message.js

+ 2 - 2
node/message.js

@@ -598,9 +598,9 @@ us.offLine = function () {
         _user = _connect[i];
         for (j in _user) {
             console.log(j)
-            console.log(_user[j].response.connection.destroyed)
+            //console.log(_user[j].response.connection)
             //判断用户已下线
-            if (_user[j].response.connection.destroyed) {
+            if (_user[j].response.connection == null || _user[j].response.connection.destroyed) {
                 us.deluser(i, j); //删除用户的数据
                 delete _user[j]
             }