Author: rob.stryker(a)jboss.com
Date: 2008-04-01 11:26:47 -0400 (Tue, 01 Apr 2008)
New Revision: 7248
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/PollThread.java
Log:
JBIDE-1891
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/PollThread.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/PollThread.java 2008-04-01
15:25:28 UTC (rev 7247)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/PollThread.java 2008-04-01
15:26:47 UTC (rev 7248)
@@ -137,8 +137,8 @@
poller.beginPolling(getServer(), expectedState, this);
// begin the loop; ask the poller every so often
- while( !stateStartedOrStopped && !abort && !done && maxWait
> 0 &&
- new Date().getTime() < startTime + maxWait ) {
+ while( !stateStartedOrStopped && !abort && !done &&
+ (new Date().getTime() < startTime + maxWait ) || maxWait < 0){
try {
Thread.sleep(100);
} catch( InterruptedException ie ) { }
Show replies by date