[libvirt] [dbus PATCH] connect: fix deregistering of NodeDevice events

Anya Harter aharter at redhat.com
Mon Jun 25 13:30:49 UTC 2018


Signed-off-by: Anya Harter <aharter at redhat.com>
---
 src/connect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/connect.c b/src/connect.c
index 09e5628..32dda14 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -68,7 +68,7 @@ virtDBusConnectClose(virtDBusConnect *connect,
     for (gint i = 0; i < VIR_NODE_DEVICE_EVENT_ID_LAST; i++) {
         if (connect->nodeDevCallbackIds[i] >= 0) {
             if (deregisterEvents) {
-                virConnectNetworkEventDeregisterAny(connect->connection,
+                virConnectNodeDeviceEventDeregisterAny(connect->connection,
                                                     connect->nodeDevCallbackIds[i]);
             }
             connect->nodeDevCallbackIds[i] = -1;
-- 
2.17.1




More information about the libvir-list mailing list