[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - sax/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 14 17:38:34 UTC 2018


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

New commits:
commit c371ecf837f047c3ab3ead9ee923b0a17c466f55
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Fri Sep 14 11:53:39 2018 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Sep 14 19:38:09 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>
    (cherry picked from commit 6b12e4a9be9283951ac234692e79c9e00cd32654)
    Reviewed-on: https://gerrit.libreoffice.org/60501
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

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


More information about the Libreoffice-commits mailing list