mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
protocol-native: avoid destroying NULL source
The source might have been destroyed before.
This commit is contained in:
parent
b87c0a9270
commit
a86f70c13d
1 changed files with 4 additions and 2 deletions
|
|
@ -713,8 +713,10 @@ error:
|
|||
pw_proxy_notify((struct pw_proxy*)this,
|
||||
struct pw_core_events, error, 0, 0,
|
||||
this->recv_seq, res, "connection error");
|
||||
pw_loop_destroy_source(loop, impl->source);
|
||||
impl->source = NULL;
|
||||
if (impl->source) {
|
||||
pw_loop_destroy_source(loop, impl->source);
|
||||
impl->source = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static void on_need_flush(void *data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue