diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c index 505ff1c13..321ed05bb 100644 --- a/src/modules/module-loopback.c +++ b/src/modules/module-loopback.c @@ -513,11 +513,11 @@ static const struct pw_proxy_events core_proxy_events = { static void impl_destroy(struct impl *impl) { - /* disconnect both streams before destroying any of them */ + /* deactivate both streams before destroying any of them */ if (impl->capture) - pw_stream_disconnect(impl->capture); + pw_stream_set_active(impl->capture, false); if (impl->playback) - pw_stream_disconnect(impl->playback); + pw_stream_set_active(impl->playback, false); if (impl->capture) pw_stream_destroy(impl->capture);