Kaydet (Commit) 74bf4ca9 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

avoid infinite loop if the instance stopped already

Change-Id: I03f78e592f3f182f34ea05829131357cabcc4c7b
üst f6624944
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment