ap

An audio player suited to my tastes
Log | Files | Refs | README | LICENSE

commit 08349a15e62f64514098e77be9109de3edb4ef87
parent 565d745a5f4d4d00a0fa3813b5b49c2a2797036e
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Mon, 28 Jun 2021 23:15:52 -0700

Fix persistent response buffer bug

Clear response buffers in aps_drop preventing data not read by
previous clients from being sent to future clients of the same file
descriptor.

Diffstat:
Maps.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/aps.c b/aps.c @@ -96,6 +96,7 @@ int aps_drop(struct aps *aps, int fd) { aps->pfds[fd].fd = -1; + resp_free(aps, fd); --aps->nfds; return sclose(fd); }