summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Burakov <mburakov@mailbox.org>2023-10-17 10:44:43 +0200
committerMikhail Burakov <mburakov@mailbox.org>2023-10-17 10:44:43 +0200
commitcca29bc591e3309fcdc650c8b9463e254414de43 (patch)
treebd182e942efd733b11cb483454ec1ad2f58ad895
parent9aa119e6765568103f5a41b401b305dff509e13a (diff)
Remove capture context fd from the io muxer on client disconnectv5
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
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;
}