Skip to content

Commit

Permalink
solver: stub out sysSampler close
Browse files Browse the repository at this point in the history
Follow-up to ce332e1 - this didn't
resolve the access to sysSampler.Close, we need to stub this one out as
well!

Signed-off-by: Justin Chadwell <me@jedevc.com>
(cherry picked from commit d0b170c)
  • Loading branch information
jedevc authored and tonistiigi committed Mar 18, 2024
1 parent 3f62976 commit 62eec44
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions solver/llbsolver/solver.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ func New(opt Opt) (*Solver, error) {

func (s *Solver) Close() error {
s.solver.Close()
err := s.sysSampler.Close()
return err
if s.sysSampler != nil {
return s.sysSampler.Close()
}
return nil
}

func (s *Solver) resolver() solver.ResolveOpFunc {
Expand Down

0 comments on commit 62eec44

Please sign in to comment.