From dbd1657b40371a17097555a6d26af598f528a5f3 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Fri, 2 May 2008 13:42:17 +0000 Subject: [PATCH] [229947][dstore] interruption to Thread.sleep() should not stop waitForUpdate() --- .../connectorservice/dstore/util/StatusMonitor.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/util/StatusMonitor.java b/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/util/StatusMonitor.java index 121efc1f29e..7b4cf857e33 100644 --- a/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/util/StatusMonitor.java +++ b/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/util/StatusMonitor.java @@ -14,6 +14,7 @@ * Contributors: * Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin * David McKnight (IBM) - [225902] [dstore] use C_NOTIFICATION command to wake up the server + * David McKnight (IBM) - [229947] [dstore] [dstore] interruption to Thread.sleep() should not stop waitForUpdate() *******************************************************************************/ package org.eclipse.rse.connectorservice.dstore.util; @@ -362,8 +363,15 @@ public class StatusMonitor implements IDomainListener, ICommunicationsListener } else { - Thread.sleep(100); - + try + { + Thread.sleep(100); + } + catch (InterruptedException e) + { + continue; + } + if (WaitThreshold > 0) // update timer count if // threshold not reached --WaitThreshold; // decrement the timer count