summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-04-16 16:24:56 +0200
committersb <sb@openoffice.org>2010-04-16 16:24:56 +0200
commite0559c44fb422b2ae11fcfdefa6c2af56b4ca2b0 (patch)
tree6462a1f78fd9b72c3ddd1371f648b81e1bc81591 /test/source
parentb8393572a7a0a3afcf341e51fcfed2bfb8b8dc65 (diff)
sb120: #i110944# jpipe.dll wrapper around jpipx.dll
Diffstat (limited to 'test/source')
-rw-r--r--test/source/java/OfficeConnection.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/source/java/OfficeConnection.java b/test/source/java/OfficeConnection.java
index 6b15e37bb9ac..55cf54320a2d 100644
--- a/test/source/java/OfficeConnection.java
+++ b/test/source/java/OfficeConnection.java
@@ -73,7 +73,7 @@ public final class OfficeConnection {
errForward.start();
XUnoUrlResolver resolver = UnoUrlResolver.create(
Bootstrap.createInitialComponentContext(null));
- for (int i = 0;; ++i) {
+ for (;;) {
try {
factory = UnoRuntime.queryInterface(
XMultiServiceFactory.class,
@@ -103,6 +103,8 @@ public final class OfficeConnection {
// it appears that DisposedExceptions can already happen while
// receiving the response of the terminate call
desktop = null;
+ } else if (process != null) {
+ process.destroy();
}
int code = 0;
if (process != null) {