fix bug when uploading wallet

This commit is contained in:
Niko 2021-11-30 02:53:59 +01:00 committed by GitHub
parent 75628d8530
commit 23690731af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -350,7 +350,7 @@ func (s *Sync) stopAndUploadWallet(e *error) {
err := s.uploadWallet() err := s.uploadWallet()
if err != nil { if err != nil {
if *e == nil { if *e == nil {
e = &err *e = err
} else { } else {
*e = errors.Prefix("failure uploading wallet", *e) *e = errors.Prefix("failure uploading wallet", *e)
} }