Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2013-06-14 13:20:01 +0000
committerMarkus Tiede2013-06-14 13:20:08 +0000
commitc1be5972bb7767929a0dd684af9538474a58a54a (patch)
treea099cf630799696d9ae18bdd60c7f7b4017a3df0
parentc87b5f18fd234a4d62ed49747a4e14f58fb4b592 (diff)
downloadorg.eclipse.jubula.core-c1be5972bb7767929a0dd684af9538474a58a54a.tar.gz
org.eclipse.jubula.core-c1be5972bb7767929a0dd684af9538474a58a54a.tar.xz
org.eclipse.jubula.core-c1be5972bb7767929a0dd684af9538474a58a54a.zip
Sprint task - fix for blocker issue http://bugzilla.bredex.de/902 - resetting of timeouts when restarting AUTs added.v7.1.00054
-rw-r--r--org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/communication/AUTConnection.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/communication/AUTConnection.java b/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/communication/AUTConnection.java
index e48e73835..85aab93ff 100644
--- a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/communication/AUTConnection.java
+++ b/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/communication/AUTConnection.java
@@ -163,12 +163,13 @@ public class AUTConnection extends BaseConnection {
* badly which will be corrected in a future version!
*/
public synchronized void reset() {
- if (getCommunicator() != null) {
- getCommunicator().clearListeners();
+ Communicator communicator = getCommunicator();
+ if (communicator != null) {
+ communicator.interruptAllTimeouts();
+ communicator.clearListeners();
+ communicator.close();
}
- getCommunicator().close();
-
instance = null;
}

Back to the top