Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: gnoNativeService: In RotatePassword, call Lock() after getSigner (…
…#190) In gnoNativeService, `RotatePassword` calls `Lock` at the beginning of the function, then [calls `getSigner`](https://github.com/gnolang/gnonative/blob/cdd7bcbfc3b932396e3c469f65859b772d35d44a/service/api.go#L285) . But `getSigner` [calls `RLock`](https://github.com/gnolang/gnonative/blob/cdd7bcbfc3b932396e3c469f65859b772d35d44a/service/service.go#L193) which blocks, and `RotatePassword` never returns. (The effect is that Gnokey Mobile hangs during "Change Master Password".) This PR changes `RotatePassword` to call `Lock` after the loop which calls `getSigner`. This was tested by doing `make npm.pack` and installing it locally in Gnokey Mobile. Signed-off-by: Jeff Thompson <[email protected]>
- Loading branch information