From bfacba6b23ab90fde3303409976809c0e1624a65 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 14 Sep 2018 11:53:39 +0100 Subject: Join the thread only if launch succeeded. Change-Id: Idee779cea587e11f6d0f7902182c9394e73d46eb Reviewed-on: https://gerrit.libreoffice.org/60488 Tested-by: Jenkins Reviewed-by: Michael Meeks Reviewed-on: https://gerrit.libreoffice.org/60544 Reviewed-by: Andras Timar Tested-by: Andras Timar (cherry picked from commit 5f3a3de26fca5e3e37e4a08940fa4bf9da5e5ecc) (cherry picked from commit c595e7c60b7040510a9541e8fb8535db60a356d3) --- sax/source/fastparser/fastparser.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 9d4a4fe29d86..9959489eed3f 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -825,7 +825,6 @@ void FastSaxParserImpl::parseStream(const InputSource& maStructSource) { rtl::Reference xParser; xParser = new ParserThread(this); - aEnsureFree.setThread(xParser); xParser->launch(); aEnsureFree.setThread(xParser); bool done = false; -- cgit