diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2015-05-28 15:04:58 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-05-29 09:56:01 +0200 |
commit | f7a8beb5e6a13dc924895244777d9ef08b23b367 (patch) | |
tree | 0740800947805e1441b9f36953d3300afdcb47ee | |
parent | 641381c1fcd66ea8de07ecfcd733089da26cbba9 (diff) |
spice: fix spice_chr_add_watch() pre-condition
Since e02bc6de30c44fd668dc0d6e1cd1804f2eed3ed3, add_watch() is called
with G_IO_HUP. Even if spice-qemu-char ignores this flag, the
precondition must be changed.
https://bugzilla.redhat.com/show_bug.cgi?id=1128992
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | spice-qemu-char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spice-qemu-char.c b/spice-qemu-char.c index 0f8903e1f7..d41bb745a8 100644 --- a/spice-qemu-char.c +++ b/spice-qemu-char.c @@ -172,7 +172,7 @@ static GSource *spice_chr_add_watch(CharDriverState *chr, GIOCondition cond) SpiceCharDriver *scd = chr->opaque; SpiceCharSource *src; - assert(cond == G_IO_OUT); + assert(cond & G_IO_OUT); src = (SpiceCharSource *)g_source_new(&SpiceCharSourceFuncs, sizeof(SpiceCharSource)); |