Skip to content

Commit 497e567

Browse files
authored
Merge pull request #2475 from alexandear/fix/panic-stop-on-delete
Fix panic in stop when the VM goes away
2 parents 463ed82 + f28f585 commit 497e567

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/hostagent/events/watcher.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ loop:
4444
case <-ctx.Done():
4545
break loop
4646
case line := <-haStdoutTail.Lines:
47+
if line == nil {
48+
break loop
49+
}
4750
if line.Err != nil {
4851
logrus.Error(line.Err)
4952
}

0 commit comments

Comments
 (0)