summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2018-09-14 11:53:39 +0100
committerAndras Timar <andras.timar@collabora.com>2018-09-17 13:47:54 +0200
commit5f3a3de26fca5e3e37e4a08940fa4bf9da5e5ecc (patch)
tree933428a64f54ae3ad09c6986285d9e538b5ff3d5
parentd06a8ce1434c1dcb45770e08395443771f57f1e9 (diff)
Join the thread only if launch succeeded.
Change-Id: Idee779cea587e11f6d0f7902182c9394e73d46eb Reviewed-on: https://gerrit.libreoffice.org/60488 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/60544 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--sax/source/fastparser/fastparser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 1c3ee79607af..9959489eed3f 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -825,8 +825,8 @@ void FastSaxParserImpl::parseStream(const InputSource& maStructSource)
{
rtl::Reference<ParserThread> xParser;
xParser = new ParserThread(this);
- aEnsureFree.setThread(xParser);
xParser->launch();
+ aEnsureFree.setThread(xParser);
bool done = false;
do {
rEntity.maConsumeResume.wait();