diff options
author | Matthew Waters <matthew@centricular.com> | 2018-09-10 23:24:21 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2018-09-21 19:36:52 +1000 |
commit | 57accd7570d3cba1b437ac041c82ec5d0936cce0 (patch) | |
tree | aef9e0aaea2af98df0a1fd2951531421476360ff | |
parent | f30c8c0c926dfbcb04a3ea302caa643e9f7d90e1 (diff) |
sctpassociation: don't join a NULL thread
Can occur if no connection is actually made and thus no connection
thread is created.
-rw-r--r-- | ext/sctp/sctpassociation.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |