]> git.corax.cc Git - toolbox/commit
include/ipc: Fix bug in unsubscribe logic when closing an endpoint
authorMatthias Kruk <m@m10k.eu>
Mon, 14 Feb 2022 10:42:56 +0000 (19:42 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 14 Feb 2022 10:42:56 +0000 (19:42 +0900)
commitd2acee68f4648cec849079ad3f7695c4a8170b01
tree2f70cfecbd62b389b01e4cfc7e9c281f9a6cc372
parent7a62d607cd963ae917dc96e6c51f67c6bb650e2b
include/ipc: Fix bug in unsubscribe logic when closing an endpoint

When `ipc_endpoint_close()` attempts to remove all subscriptions of
an endpoint, the list that it iterates over includes the directory
containing the subscriptions, causing the function to emit an error.

This commit fixes the way that `ipc_endpoint_close()` determines the
list of subscriptions to be removed.
include/ipc.sh