[Spice-devel] [PATCH spice-gtk 03/10] usbredir: USB channels can not be read only

Hans de Goede hdegoede at redhat.com
Mon Dec 19 03:24:36 PST 2011


A usbredir channel must always be bi-directional. spice-server
allows only one client to connect even when in multi-client mode. Since
usually there are multiple usb channels available, it is allowed for one client
to use one channel, while another client uses another usb channel.

Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
 gtk/channel-usbredir.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/gtk/channel-usbredir.c b/gtk/channel-usbredir.c
index 06d80d5..6574e32 100644
--- a/gtk/channel-usbredir.c
+++ b/gtk/channel-usbredir.c
@@ -350,9 +350,6 @@ void spice_usbredir_channel_do_write(SpiceUsbredirChannel *channel)
 {
     SpiceUsbredirChannelPrivate *priv = channel->priv;
 
-    if (spice_channel_get_read_only(SPICE_CHANNEL(channel)))
-        return;
-
     /* No recursion allowed! */
     g_return_if_fail(priv->msg_out == NULL);
 
-- 
1.7.7.4



More information about the Spice-devel mailing list