diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-08-02 22:55:53 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-08-27 09:13:02 +0300 |
commit | cb767a83fda2b93b47de284719353b3d073120be (patch) | |
tree | 9c65e48564607ac96ba0253f718f613156f67f27 /server/smartcard.c | |
parent | b0264a5e37b308c8a5b268974aa9936014a9389f (diff) | |
download | spice-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.c | 3 |
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) { |