mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
sctpassociation: don't join a NULL thread
Can occur if no connection is actually made and thus no connection thread is created.
This commit is contained in:
parent
f30c8c0c92
commit
57accd7570
1 changed files with 2 additions and 1 deletions
|
@ -216,7 +216,8 @@ gst_sctp_association_finalize (GObject * object)
|
||||||
}
|
}
|
||||||
G_UNLOCK (associations_lock);
|
G_UNLOCK (associations_lock);
|
||||||
|
|
||||||
g_thread_join (self->connection_thread);
|
if (self->connection_thread)
|
||||||
|
g_thread_join (self->connection_thread);
|
||||||
|
|
||||||
G_OBJECT_CLASS (gst_sctp_association_parent_class)->finalize (object);
|
G_OBJECT_CLASS (gst_sctp_association_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue