We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 40960de + cada9d5 commit 6cd3c1cCopy full SHA for 6cd3c1c
1 file changed
accounts/manager.go
@@ -83,9 +83,6 @@ func NewManager(config *Config, backends ...Backend) *Manager {
83
84
// Close terminates the account manager's internal notification processes.
85
func (am *Manager) Close() error {
86
- for _, w := range am.wallets {
87
- w.Close()
88
- }
89
errc := make(chan error)
90
am.quit <- errc
91
return <-errc
@@ -127,6 +124,10 @@ func (am *Manager) update() {
127
124
am.feed.Send(event)
128
125
129
126
case errc := <-am.quit:
+ // Close all owned wallets
+ for _, w := range am.wallets {
+ w.Close()
130
+ }
131
// Manager terminating, return
132
errc <- nil
133
return
0 commit comments