mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-04 18:40:12 +01:00
If we don't remove the socket from epoll when the connection is lost, we risk having the lost callback triggered more than once by epoll, creating race condition in the unit test because more than 1 event happened. The epoll thread and socket will be re-created again when re-connecting. Note that we cannot destroy the epoll thread before triggering the lost connection callback because we are running the callback in the epoll thread, which is why removing the socket from epoll is the only way to make sure the lost connection callback is only triggered once. |
||
|---|---|---|
| .. | ||
| client.c | ||
| client.h | ||
| defs.h | ||
| meson.build | ||
| private.h | ||
| protocol.c | ||
| protocol.h | ||
| receiver.c | ||
| receiver.h | ||
| sender.c | ||
| sender.h | ||
| server.c | ||
| server.h | ||
| utils.c | ||
| wpipc.h | ||