diff options
Diffstat (limited to 'qadevOOo/runner/helper/OfficeWatcher.java')
-rw-r--r-- | qadevOOo/runner/helper/OfficeWatcher.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/qadevOOo/runner/helper/OfficeWatcher.java b/qadevOOo/runner/helper/OfficeWatcher.java index 60900c0052bd..241115e775bd 100644 --- a/qadevOOo/runner/helper/OfficeWatcher.java +++ b/qadevOOo/runner/helper/OfficeWatcher.java @@ -65,7 +65,7 @@ public class OfficeWatcher extends Thread implements share.Watcher { while (!isDone) { timeOut = params.getInt("TimeOut"); final int previous = StoredPing; - shortWait(timeOut == 0 ? 30000 : timeOut); + util.utils.pause(timeOut == 0 ? 30000 : timeOut); // a timeout with value 0 lets watcher not react. if ((StoredPing == previous) && timeOut != 0) { isDone = true; @@ -95,17 +95,10 @@ public class OfficeWatcher extends Thread implements share.Watcher { } else { dbg("reaeched timeout but ProcessHandler is NULL"); } - shortWait(timeOut == 0 ? 30000 : timeOut); + util.utils.pause(timeOut == 0 ? 30000 : timeOut); dbg("finished"); } - private void shortWait(int timeOut) { - try { - OfficeWatcher.sleep(timeOut); - } catch (InterruptedException ie) { - } - } - private void dbg(String message) { if (debug) { System.out.println(utils.getDateTime() + "OfficeWatcher: " + message); |