Skip to content

Commit

Permalink
fix: set logFile to nil on terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Dec 16, 2024
1 parent f2f9867 commit 158dc2e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/ollama/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,5 +506,11 @@ func (c *OllamaContainer) Terminate(ctx context.Context) error {
errs = append(errs, fmt.Errorf("remove log: %w", err))
}

return errors.Join(errs...)
if len(errs) > 0 {
return errors.Join(errs...)
}

c.localCtx.logFile = nil

return nil
}

0 comments on commit 158dc2e

Please sign in to comment.