[Spice-devel] [PATCH v4 11/16] UsbDevicemanager: Track device disconnection operations in progress
Dmitry Fleytman
dmitry at daynix.com
Sun Aug 16 05:35:48 PDT 2015
From: Kirill Moizik <kmoizik at redhat.com>
Signed-off-by: Kirill Moizik <kmoizik at redhat.com>
Signed-off-by: Dmitry Fleytman <dfleytma at redhat.com>
---
src/usb-device-manager.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
index 317e3d0..99ff4d9 100644
--- a/src/usb-device-manager.c
+++ b/src/usb-device-manager.c
@@ -1705,6 +1705,8 @@ void _disconnect_device_async_cb(GObject *gobject,
}
#endif
+ _set_redirecting(self, FALSE);
+
g_simple_async_result_complete(result);
g_object_unref(result);
g_free(data);
@@ -1728,6 +1730,8 @@ void spice_usb_device_manager_disconnect_device_async(SpiceUsbDeviceManager *sel
SpiceUsbredirChannel *channel;
+ _set_redirecting(self, TRUE);
+
channel = spice_usb_device_manager_get_channel_for_dev(self, device);
nested = g_simple_async_result_new(G_OBJECT(self), callback, user_data,
spice_usb_device_manager_disconnect_device_async);
--
2.4.3
More information about the Spice-devel
mailing list