summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2018-09-14 11:53:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-09-14 19:38:09 +0200
commitc371ecf837f047c3ab3ead9ee923b0a17c466f55 (patch)
treed315897ab861602a46cff1eaaaa17855152e2f03 /sax
parent236d015936572445ed7632a69f019e2c52c84630 (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> (cherry picked from commit 6b12e4a9be9283951ac234692e79c9e00cd32654) Reviewed-on: https://gerrit.libreoffice.org/60501 Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sax')
-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 5655d7137056..548d54f5d613 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -801,8 +801,8 @@ void FastSaxParserImpl::parseStream(const InputSource& rStructSource)
{
rtl::Reference<ParserThread> xParser;
xParser = new ParserThread(this);
- aEnsureFree.setThread(xParser);
xParser->launch();
+ aEnsureFree.setThread(xParser);
bool done = false;
do {
rEntity.maConsumeResume.wait();