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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Kirill Moizik <kmoizik@xxxxxxxxxx>

---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]