Skip to content

Commit

Permalink
stop relayer only if it was set
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Sep 15, 2023
1 parent c94ead4 commit e89138a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions interchain_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ func BuildInitialChainWithRelayer(
t.Cleanup(func() {
_ = ic.Close()

if err := r.StopRelayer(ctx, eRep); err != nil {
t.Logf("an error occurred while stopping the relayer: %s", err)
if r != nil {
if err := r.StopRelayer(ctx, eRep); err != nil {
t.Logf("an error occurred while stopping the relayer: %s", err)
}
}
})

Expand Down

0 comments on commit e89138a

Please sign in to comment.