summaryrefslogtreecommitdiff
path: root/ui/spice-core.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-10-15 09:47:53 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-11-02 12:42:45 +0100
commit3d6d306c104abe37610184f12e9342fcbc078395 (patch)
tree5689995e9ed4fdd41b692ccda72581b46557b4eb /ui/spice-core.c
parent7d72e76228351d18a856f1e4f5365b59d3205dc3 (diff)
downloadqemu-3d6d306c104abe37610184f12e9342fcbc078395.tar.gz
qemu-3d6d306c104abe37610184f12e9342fcbc078395.tar.bz2
qemu-3d6d306c104abe37610184f12e9342fcbc078395.zip
spice-core: fix watching for write events
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/spice-core.c')
-rw-r--r--ui/spice-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/spice-core.c b/ui/spice-core.c
index 6a1cf17e49..45807ed6e1 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -95,7 +95,7 @@ static void watch_update_mask(SpiceWatch *watch, int event_mask)
on_read = watch_read;
}
if (watch->event_mask & SPICE_WATCH_EVENT_WRITE) {
- on_read = watch_write;
+ on_write = watch_write;
}
qemu_set_fd_handler(watch->fd, on_read, on_write, watch);
}