diff --git a/spice-qemu-char.c b/spice-qemu-char.c index 0f8903e1f73fd84e197770cb4e5f4be9902e41aa..d41bb745a82d437eb1d12d50d7edaa62841bd30a 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));