summaryrefslogtreecommitdiff
path: root/gtk/channel-usbredir.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2011-11-23 01:41:57 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2011-11-23 17:57:34 +0100
commitb6b41fdbc37d5a83d4f89922933ae56dd867e890 (patch)
tree979ca04f4566b3a2895504581df5d3696077d9b7 /gtk/channel-usbredir.c
parent1711687df25b02074097d8308b801bb35fd8dafd (diff)
Do not send specific messages in read-only
Diffstat (limited to 'gtk/channel-usbredir.c')
-rw-r--r--gtk/channel-usbredir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/channel-usbredir.c b/gtk/channel-usbredir.c
index 9479b6b..00647b6 100644
--- a/gtk/channel-usbredir.c
+++ b/gtk/channel-usbredir.c
@@ -350,6 +350,9 @@ 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);