diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-10-11 04:11:53 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-10-11 04:16:20 +0200 |
commit | 74bf4ca9f382fa12481fda18b57cdce4c0d5422b (patch) | |
tree | 0cf34786ee9aa2f6fdeb15c1a97ad929b11f3dfe /uitest | |
parent | f6624944219da151c10c3c8b5decaa0abbef1b45 (diff) |
avoid infinite loop if the instance stopped already
Change-Id: I03f78e592f3f182f34ea05829131357cabcc4c7b
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/libreoffice/connection.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/uitest/libreoffice/connection.py b/uitest/libreoffice/connection.py index a39b42f2f0ce..7b36479b4190 100644 --- a/uitest/libreoffice/connection.py +++ b/uitest/libreoffice/connection.py @@ -74,6 +74,9 @@ class OfficeConnection: url = "uno:" + socket + ";urp;StarOffice.ComponentContext" print("OfficeConnection: connecting to: " + url) while True: + if self.soffice.poll() is not None: + raise Exception("soffice has stopped.") + try: xContext = xUnoResolver.resolve(url) return xContext |