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 6a1cf17..45807ed 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);
 }