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:
Matthew Waters 2018-09-10 23:24:21 +10:00
parent f30c8c0c92
commit 57accd7570

View file

@ -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);
} }