The change won't hurt much current callers performance I guess and now we can use the function when we need to be sure of synchronous thread exit as well. Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx> --- src/qemu/qemu_domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 2d9d822..18651d0 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -1571,6 +1571,7 @@ qemuDomainObjStopWorker(virDomainObjPtr dom) qemuDomainObjPrivatePtr priv = dom->privateData; if (priv->eventThread) { + virEventThreadClose(priv->eventThread); g_object_unref(priv->eventThread); priv->eventThread = NULL; } -- 1.8.3.1