root 1 year ago
parent
commit
7784b8dbb6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      node/message.js

+ 1 - 1
node/message.js

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