mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 08:47:56 +00:00
qemu: clear qmp state before wait for qemu process
So that if there is any remaining state, we do not let it interfere with the new one. This should fix the occasional vm factory hang. Fixes: #535 Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
parent
f4a7712795
commit
c8b4fabc37
@ -517,6 +517,8 @@ func (q *qemu) waitSandbox(timeout int) error {
|
||||
var ver *govmmQemu.QMPVersion
|
||||
var err error
|
||||
|
||||
// clear any possible old state before trying to connect again.
|
||||
q.qmpShutdown()
|
||||
timeStart := time.Now()
|
||||
for {
|
||||
disconnectCh := make(chan struct{})
|
||||
|
Loading…
Reference in New Issue
Block a user