|
@@ -2,6 +2,7 @@ package agentmanager
|
|
|
|
|
|
import (
|
|
import (
|
|
"server/common"
|
|
"server/common"
|
|
|
|
+ "server/console"
|
|
"time"
|
|
"time"
|
|
|
|
|
|
"github.com/name5566/leaf/gate"
|
|
"github.com/name5566/leaf/gate"
|
|
@@ -45,6 +46,7 @@ func CloseAgent(args []interface{}) {
|
|
if exists {
|
|
if exists {
|
|
delete(pendingConns, agent)
|
|
delete(pendingConns, agent)
|
|
}
|
|
}
|
|
|
|
+ console.Log("CloseAgent:", args...)
|
|
// 清理已认证连接
|
|
// 清理已认证连接
|
|
for userID, a := range authedUsers {
|
|
for userID, a := range authedUsers {
|
|
//设置为离线状态
|
|
//设置为离线状态
|