Skip to content

Commit

Permalink
fix: return ctx error when UP command exists (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
braginini authored Oct 26, 2021
1 parent 595ea0d commit 0b2c268
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,12 @@ func runClient() error {
return err
}

go func() {
cleanupCh <- struct{}{}
}()

log.Info("stopped Wiretrustee client")
cleanupCh <- struct{}{}

return nil
return ctx.Err()

}

0 comments on commit 0b2c268

Please sign in to comment.