From 890eb38f19108a6949a680b97c6619fc0648a536 Mon Sep 17 00:00:00 2001 From: ucwong Date: Thu, 21 Dec 2023 18:13:02 +0800 Subject: [PATCH] close all wallet before account --- accounts/manager.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/accounts/manager.go b/accounts/manager.go index 9795869744..70c1787a71 100644 --- a/accounts/manager.go +++ b/accounts/manager.go @@ -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