更新协议type

This commit is contained in:
wh_zcy 2022-09-19 10:05:34 +08:00
parent 48f1bb7404
commit 726ceecc72
2 changed files with 5 additions and 2 deletions

View File

@ -154,7 +154,10 @@ func (a *appTerm) OnClose() bool {
if !b {
return
}
a.sshService.Client.Close()
if a.sshService.Client != nil {
a.sshService.Client.Close()
}
}, toolWin.w)
return true
}

View File

@ -93,7 +93,7 @@ func (this *apiComp) Choose(session comm.IUserSession, req *pb.RtaskChooseReq) (
rsp := &pb.RtaskFinishPush{
RtaskId: req.RtaskId,
}
if err := session.SendMsg(string(this.moduleRtask.GetType()), RtaskSubTypeChoose, rsp); err != nil {
if err := session.SendMsg(string(this.moduleRtask.GetType()), "finish", rsp); err != nil {
code = pb.ErrorCode_SystemError
}
}