spice-core: fix watching for write events

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Hans de Goede 2010-10-15 09:47:53 +02:00 committed by Gerd Hoffmann
parent 7d72e76228
commit 3d6d306c10

View file

@ -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);
}