[virt-tools-list] [PATCH] usbredir: listen for device-error signal
Hans de Goede
hdegoede at redhat.com
Thu Mar 29 15:16:11 UTC 2012
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/virt-viewer-session-spice.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c
index c000d35..49f72fe 100644
--- a/src/virt-viewer-session-spice.c
+++ b/src/virt-viewer-session-spice.c
@@ -191,9 +191,12 @@ create_spice_session(VirtViewerSessionSpice *self)
G_CALLBACK(virt_viewer_session_spice_channel_destroy), self);
manager = spice_usb_device_manager_get(self->priv->session, NULL);
- if (manager)
+ if (manager) {
g_signal_connect(manager, "auto-connect-failed",
G_CALLBACK(usb_connect_failed), self);
+ g_signal_connect(manager, "device-error",
+ G_CALLBACK(usb_connect_failed), self);
+ }
g_object_bind_property(self, "auto-usbredir",
self->priv->gtk_session, "auto-usbredir",
--
1.7.9.3
More information about the virt-tools-list
mailing list