stream: avoid recursive calls to _disconnect

Fixes #354
This commit is contained in:
Wim Taymans 2020-10-30 09:13:38 +01:00
parent 0265514023
commit 0cea806447

View file

@ -1629,6 +1629,10 @@ int pw_stream_disconnect(struct pw_stream *stream)
struct stream *impl = SPA_CONTAINER_OF(stream, struct stream, this); struct stream *impl = SPA_CONTAINER_OF(stream, struct stream, this);
pw_log_debug(NAME" %p: disconnect", stream); pw_log_debug(NAME" %p: disconnect", stream);
if (impl->disconnecting)
return 0;
impl->disconnecting = true; impl->disconnecting = true;
if (impl->node) if (impl->node)