diff options
-rw-r--r-- | migration/multifd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/migration/multifd.c b/migration/multifd.c index 0533da1..3242f68 100644 --- a/migration/multifd.c +++ b/migration/multifd.c @@ -524,6 +524,9 @@ static void multifd_send_terminate_threads(Error *err) qemu_mutex_lock(&p->mutex); p->quit = true; qemu_sem_post(&p->sem); + if (p->c) { + qio_channel_shutdown(p->c, QIO_CHANNEL_SHUTDOWN_BOTH, NULL); + } qemu_mutex_unlock(&p->mutex); } } |