From 03ba101aa2afb65ff5a1f93b89810835fc5eeee3 Mon Sep 17 00:00:00 2001 From: Zhou Yimin Date: Thu, 17 Oct 2013 15:59:21 +0800 Subject: [PATCH] remote: fix regression in event deregistration Introduced by 7b87a3 When I quit the process which only register VIR_DOMAIN_EVENT_ID_REBOOT, I got error like: "libvirt: XML-RPC error : internal error: domain event 0 not registered". Then I add the following code, it fixed. Signed-off-by: Zhou Yimin Signed-off-by: Eric Blake (cherry picked from commit 9712c2510ec87a87578576a407768380e250a6a4) --- src/remote/remote_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 657364f4e6..fde2a3aff5 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -5062,7 +5062,7 @@ static int remoteConnectDomainEventDeregisterAny(virConnectPtr conn, /* If that was the last callback for this eventID, we need to disable * events on the server */ if (count == 0) { - args.eventID = callbackID; + args.eventID = eventID; if (call(conn, priv, 0, REMOTE_PROC_CONNECT_DOMAIN_EVENT_DEREGISTER_ANY, (xdrproc_t) xdr_remote_connect_domain_event_deregister_any_args, (char *) &args, -- GitLab