mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 22:45:21 +00:00
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 <zhouyimin@huawei.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit 9712c2510e
)
This commit is contained in:
parent
10a43d2071
commit
f6f82900fd
@ -5137,7 +5137,7 @@ static int remoteConnectDomainEventDeregisterAny(virConnectPtr conn,
|
|||||||
/* If that was the last callback for this eventID, we need to disable
|
/* If that was the last callback for this eventID, we need to disable
|
||||||
* events on the server */
|
* events on the server */
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
args.eventID = callbackID;
|
args.eventID = eventID;
|
||||||
|
|
||||||
if (call(conn, priv, 0, REMOTE_PROC_CONNECT_DOMAIN_EVENT_DEREGISTER_ANY,
|
if (call(conn, priv, 0, REMOTE_PROC_CONNECT_DOMAIN_EVENT_DEREGISTER_ANY,
|
||||||
(xdrproc_t) xdr_remote_connect_domain_event_deregister_any_args, (char *) &args,
|
(xdrproc_t) xdr_remote_connect_domain_event_deregister_any_args, (char *) &args,
|
||||||
|
Loading…
Reference in New Issue
Block a user