From 8f2d137046f214e405268d296c7f50ba0e8ab121 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 30 Oct 2022 11:10:03 +0000 Subject: [PATCH] server: Make encoder inert when closing client --- src/server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server.c b/src/server.c index bec9432..e5a1a10 100644 --- a/src/server.c +++ b/src/server.c @@ -121,6 +121,7 @@ static void client_close(struct nvnc_client* client) client->server->n_damage_clients -= !(client->encoder->impl->flags & ENCODER_IMPL_FLAG_IGNORES_DAMAGE); + client->encoder->on_done = NULL; } encoder_unref(client->encoder); pixman_region_fini(&client->damage); @@ -660,6 +661,7 @@ static void process_fb_update_requests(struct nvnc_client* client) server->n_damage_clients -= !(client->encoder->impl->flags & ENCODER_IMPL_FLAG_IGNORES_DAMAGE); + client->encoder->on_done = NULL; } encoder_unref(client->encoder); client->encoder = encoder_new(encoding, width, height);