1
0

Fix check whether vm is alive

This commit is contained in:
dump_stack() 2023-05-07 16:05:11 +00:00
parent 734240500b
commit 0e08d87a64
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

3
pew.go
View File

@ -630,9 +630,10 @@ func (cmd PewCmd) testArtifact(swg *sizedwaitgroup.SizedWaitGroup,
defer q.Stop() defer q.Stop()
go func() { go func() {
time.Sleep(time.Minute)
for !q.Died { for !q.Died {
time.Sleep(time.Minute)
slog.Debug().Msg("still alive") slog.Debug().Msg("still alive")
time.Sleep(time.Minute)
} }
}() }()