[Libreoffice-commits] core.git: sax/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 14 14:25:40 UTC 2018


 sax/source/fastparser/fastparser.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6b12e4a9be9283951ac234692e79c9e00cd32654
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Fri Sep 14 11:53:39 2018 +0100
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Fri Sep 14 16:25:15 2018 +0200

    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 at collabora.com>

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();


More information about the Libreoffice-commits mailing list