summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-12-18 15:59:41 +0100
committerHans de Goede <hdegoede@redhat.com>2011-12-22 16:53:24 +0100
commita0aab8b57a9ddd8abba934715cee02f72ca75096 (patch)
tree849b17c923ab8cc02e3f047a9dfd57c6b5bf80bf /gtk
parentb4d5d887b432e37dfbd9f89c1e9e3299ed469e8d (diff)
downloadspice-gtk-a0aab8b57a9ddd8abba934715cee02f72ca75096.tar.gz
spice-gtk-a0aab8b57a9ddd8abba934715cee02f72ca75096.tar.xz
spice-gtk-a0aab8b57a9ddd8abba934715cee02f72ca75096.zip
usbredir: USB channels can not be read only
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@redhat.com>
Diffstat (limited to 'gtk')
-rw-r--r--gtk/channel-usbredir.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gtk/channel-usbredir.c b/gtk/channel-usbredir.c
index d9cc03e..bbfb9e9 100644
--- a/gtk/channel-usbredir.c
+++ b/gtk/channel-usbredir.c
@@ -360,9 +360,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);