更新协议type
This commit is contained in:
parent
48f1bb7404
commit
726ceecc72
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user