From 57accd7570d3cba1b437ac041c82ec5d0936cce0 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 10 Sep 2018 23:24:21 +1000 Subject: sctpassociation: don't join a NULL thread Can occur if no connection is actually made and thus no connection thread is created. --- ext/sctp/sctpassociation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/sctp/sctpassociation.c b/ext/sctp/sctpassociation.c index b7c686426..23be55fae 100644 --- a/ext/sctp/sctpassociation.c +++ b/ext/sctp/sctpassociation.c @@ -216,7 +216,8 @@ gst_sctp_association_finalize (GObject * object) } 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); } -- cgit v1.2.3