[virt-tools-list] [PATCH] usbredir: listen for device-error signal

Daniel P. Berrange berrange at redhat.com
Thu Mar 29 15:21:59 UTC 2012


On Thu, Mar 29, 2012 at 05:16:11PM +0200, Hans de Goede wrote:
> 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);
> +    }

ACK
 

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the virt-tools-list mailing list