Skip to content

Commit

Permalink
Close database connection even if second error triggers (cosmos#449)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark <[email protected]>
  • Loading branch information
cryptophonic and Mark authored Mar 8, 2021
1 parent 6dcc55b commit cf49cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relayer/tm-light-client.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ func (c *Chain) ForceInitLight() error {
if err != nil {
return err
}
defer df()
_, err = c.LightClientWithoutTrust(db)
if err != nil {
return err
}
df()
return nil
}

Expand Down

0 comments on commit cf49cb4

Please sign in to comment.