Skip to content

Commit

Permalink
Merge pull request #1866 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
close all wallet before account
  • Loading branch information
ucwong authored Dec 22, 2023
2 parents 01e6483 + 890eb38 commit 0bed5a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions accounts/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ func NewManager(config *Config, backends ...Backend) *Manager {

// Close terminates the account manager's internal notification processes.
func (am *Manager) Close() error {
for _, w := range am.wallets {
w.Close()
}
errc := make(chan error)
am.quit <- errc
return <-errc
Expand Down

0 comments on commit 0bed5a1

Please sign in to comment.