When configured, reinitialize the module instead of exiting. This allows a restart/reconnect, but the module to appear to always be alive when the user does: "pactl list modules". (The sink will still not exist until the tcp connection is established.)
Part-of:
a48bee4f0 tunnel-sink-new: reinit module
src/modules/meson.build | 2 +-
src/modules/module-tunnel-sink-new.c | 65 ++++++++++++++++++++++----
src/modules/restart-module.c | 88 ++++++++++++++++++++++++++++++++++++
src/modules/restart-module.h | 41 +++++++++++++++++
4 files changed, 187 insertions(+), 9 deletions(-)
Upstream: cgit.freedesktop.org