restart the State for a new session #18

Closed
Alfred-mk wants to merge 3 commits from reset-execpath into master
Showing only changes of commit 371dc092b9 - Show all commits

View File

@ -129,7 +129,7 @@ func (h *MenuHandlers) Init(ctx context.Context, sym string, input []byte) (reso
if len(input) == 0 { if len(input) == 0 {
// move to the top node // move to the top node
h.st.Code = []byte{} h.st.Code = []byte{}
h.st.ExecPath = []string{} h.st.Restart()
} }
sessionId, ok := ctx.Value("SessionId").(string) sessionId, ok := ctx.Value("SessionId").(string)