From cca29bc591e3309fcdc650c8b9463e254414de43 Mon Sep 17 00:00:00 2001 From: Mikhail Burakov Date: Tue, 17 Oct 2023 10:44:43 +0200 Subject: Remove capture context fd from the io muxer on client disconnect --- main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 0242bce..7bd2c7b 100644 --- a/main.c +++ b/main.c @@ -96,6 +96,8 @@ static void MaybeDropClient(struct Contexts* contexts) { contexts->encode_context = NULL; } if (contexts->capture_context) { + IoMuxerForget(&contexts->io_muxer, + CaptureContextGetEventsFd(contexts->capture_context)); CaptureContextDestroy(contexts->capture_context); contexts->capture_context = NULL; } -- cgit v1.2.3