fixes #34 「动态指令」多行指令会被当作一行执行
fixes #32 会话无法维持,1分钟左右自动断开 fixes #31 更新"资产"会清空"标签" fixes #13 建议添加用户权限功能、隐藏授权账户信息
This commit is contained in:
@ -103,6 +103,15 @@ func CloseSessionById(sessionId string, code int, reason string) {
|
||||
CloseSessionByWebSocket(tun.WebSocket, code, reason)
|
||||
}
|
||||
|
||||
s, err := model.FindSessionById(sessionId)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
if s.Status == model.Disconnected {
|
||||
return
|
||||
}
|
||||
|
||||
global.Store.Del(sessionId)
|
||||
session := model.Session{}
|
||||
session.ID = sessionId
|
||||
|
Reference in New Issue
Block a user