Clear persister from handler in outer code aswell
This commit is contained in:
@@ -113,7 +113,7 @@ func (h *Handlers) Init(ctx context.Context, sym string, input []byte) (resource
|
||||
return r, nil
|
||||
}
|
||||
defer func() {
|
||||
h.pe = nil
|
||||
h.Exit()
|
||||
}()
|
||||
|
||||
h.st = h.pe.GetState()
|
||||
@@ -140,6 +140,10 @@ func (h *Handlers) Init(ctx context.Context, sym string, input []byte) (resource
|
||||
return r, nil
|
||||
}
|
||||
|
||||
func (h *Handlers) Exit() {
|
||||
h.pe = nil
|
||||
}
|
||||
|
||||
// SetLanguage sets the language across the menu
|
||||
func (h *Handlers) SetLanguage(ctx context.Context, sym string, input []byte) (resource.Result, error) {
|
||||
var res resource.Result
|
||||
|
||||
Reference in New Issue
Block a user