summaryrefslogtreecommitdiffstats
path: root/sax
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2018-09-14 11:53:39 +0100
committerMichael Meeks <michael.meeks@collabora.com>2018-09-14 16:25:15 +0200
commit6b12e4a9be9283951ac234692e79c9e00cd32654 (patch)
tree9ebb51f9e8d55c23765fc0690b37e0d84e65aacb /sax
parentFix race in chart::ChartView (diff)
downloadcore-6b12e4a9be9283951ac234692e79c9e00cd32654.tar.gz
core-6b12e4a9be9283951ac234692e79c9e00cd32654.zip
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>
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 2c730685f526..447acdc68274 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -814,8 +814,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();