From 05ff0c15148a26aa0c62f8fbf699f0e6ffe0aa21 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 12 Oct 2019 17:29:08 +0000 Subject: [PATCH] Don't send an update that hasn't been requested --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 0142d9a..aa3907d 100644 --- a/src/server.c +++ b/src/server.c @@ -556,7 +556,7 @@ static void process_fb_update_requests(struct nvnc_client *client) if (!pixman_region_not_empty(&client->damage)) return; - if (client->is_updating) + if (client->is_updating || client->n_pending_requests == 0) return; client->is_updating = true;