[Spice-devel] [PATCH v3 03/13] GUdevClient: Do not process udb add/remove events if redirection in progress

Kirill Moizik kirill at daynix.com
Mon Aug 3 06:10:43 PDT 2015


From: Kirill Moizik <kmoizik at redhat.com>

---
 src/win-usb-dev.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/win-usb-dev.c b/src/win-usb-dev.c
index 875ef89..c42273f 100644
--- a/src/win-usb-dev.c
+++ b/src/win-usb-dev.c
@@ -360,6 +360,9 @@ static void handle_dev_change(GUdevClient *self)
     GList *llist, *slist; /* long-list and short-list*/
     GList *lit, *sit; /* iterators for long-list and short-list */
     GUdevDevice *ldev, *sdev; /* devices on long-list and short-list */
+    if (priv->redirecting == TRUE) {
+        return;
+    }
 
     dev_count = g_udev_client_list_devices(self, &now_devs, &err,
                                            __FUNCTION__);
-- 
2.4.3



More information about the Spice-devel mailing list