]> xenbits.xensource.com Git - qemu-xen-4.4-testing.git/commitdiff
spice-core: fix watching for write events
authorHans de Goede <hdegoede@redhat.com>
Fri, 15 Oct 2010 07:47:53 +0000 (09:47 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 2 Nov 2010 11:42:45 +0000 (12:42 +0100)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-core.c

index 6a1cf17e49aa660f6f13c8ebc1cd235054ca2474..45807ed6e1f467b518872f28416adb3ad5e267a0 100644 (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);
 }