summaryrefslogtreecommitdiff
path: root/ext/sctp/sctpassociation.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sctp/sctpassociation.c')
-rw-r--r--ext/sctp/sctpassociation.c3
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);
}