|
@@ -616,7 +616,8 @@ us.offLine = function () {
|
|
|
_user = _connect[i];
|
|
|
for (j in _user) {
|
|
|
//判断用户已下线
|
|
|
- if (_user[j].response.connection == null || _user[j].response.connection.destroyed) {
|
|
|
+ if (_user[j].response.finished) {
|
|
|
+ //if (_user[j].response.connection == null || _user[j].response.connection.destroyed) {
|
|
|
console.log("================2===============");
|
|
|
console.log(i);
|
|
|
console.log(j);
|
|
@@ -2617,7 +2618,7 @@ us.createGuid = function () {
|
|
|
**/
|
|
|
us.server.listen('1473', '', function () {
|
|
|
//用户下线监控
|
|
|
- setInterval(function () { us.offLine() }, 10000);
|
|
|
+ setInterval(function () { us.offLine() }, 60000);
|
|
|
//在控制台输出监听提示
|
|
|
console.log("开始监听" + us.server.address().port + "......");
|
|
|
});
|