summaryrefslogtreecommitdiffstats
path: root/server/smartcard.c
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-08-02 22:55:53 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-08-27 09:13:02 +0300
commitcb767a83fda2b93b47de284719353b3d073120be (patch)
tree9c65e48564607ac96ba0253f718f613156f67f27 /server/smartcard.c
parentb0264a5e37b308c8a5b268974aa9936014a9389f (diff)
downloadspice-cb767a83fda2b93b47de284719353b3d073120be.tar.gz
spice-cb767a83fda2b93b47de284719353b3d073120be.tar.xz
spice-cb767a83fda2b93b47de284719353b3d073120be.zip
char device migration: don't read or write from/to the device while waiting for migraion data
Diffstat (limited to 'server/smartcard.c')
-rw-r--r--server/smartcard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/smartcard.c b/server/smartcard.c
index 2ed0bde8..de86185d 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -326,7 +326,8 @@ static void smartcard_char_device_attach(SpiceCharDeviceInstance *char_device,
FALSE, /* no flow control yet */
0, /* send queue size */
~0,
- ~0);
+ ~0,
+ red_channel_client_waits_for_migrate_data(&scc->base));
scc->smartcard_state = st;
write_buf = spice_char_device_write_buffer_get(st->chardev_st, NULL, sizeof(vheader));
if (!write_buf) {