display_channel is never NULL. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/red-worker.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/red-worker.c b/server/red-worker.c index 9f967b4..dd20bd5 100644 --- a/server/red-worker.c +++ b/server/red-worker.c @@ -320,8 +320,7 @@ static int red_process_display(RedWorker *worker, int *ring_is_empty) spice_error("bad command type"); } n++; - if ((worker->display_channel && - red_channel_all_blocked(&worker->display_channel->common.base)) + if (red_channel_all_blocked(&worker->display_channel->common.base) || spice_get_monotonic_time_ns() - start > NSEC_PER_SEC / 100) { worker->event_timeout = 0; return n; -- 2.4.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel