Skip to content

Commit

Permalink
respect ctx error
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Johnson <[email protected]>
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 and jonjohnsonjr authored Dec 13, 2024
1 parent fb5d14b commit 475099e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/container/qemu_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ func createMicroVM(ctx context.Context, cfg *Config) error {
retries := 6000
try := 0
for try <= retries {
if err := ctx.Err(); err != nil {
return fmt.Errorf("checking SSH server: %w", err)
}

try++
time.Sleep(time.Millisecond * 500)

Expand Down

0 comments on commit 475099e

Please sign in to comment.