Author: jfrederic.clere(a)jboss.com
Date: 2009-04-27 09:43:28 -0400 (Mon, 27 Apr 2009)
New Revision: 2407
Modified:
trunk/mod_cluster/src/main/java/org/jboss/modcluster/advertise/impl/AdvertiseListenerImpl.java
Log:
After Paul patches for MODCLUSTER-73. The hudson builds are hanging
on no-linux box. This fix it and prevent the exception of MODCLUSTER-73.
Modified:
trunk/mod_cluster/src/main/java/org/jboss/modcluster/advertise/impl/AdvertiseListenerImpl.java
===================================================================
---
trunk/mod_cluster/src/main/java/org/jboss/modcluster/advertise/impl/AdvertiseListenerImpl.java 2009-04-27
13:34:03 UTC (rev 2406)
+++
trunk/mod_cluster/src/main/java/org/jboss/modcluster/advertise/impl/AdvertiseListenerImpl.java 2009-04-27
13:43:28 UTC (rev 2407)
@@ -316,7 +316,7 @@
try
{
// Wait for worker to complete
- this.workerThread.join();
+ this.workerThread.join(1000);
}
catch (InterruptedException e)
{
@@ -429,6 +429,8 @@
this.wait();
}
}
+ if (AdvertiseListenerImpl.this.socket == null)
+ break;
DatagramPacket packet = new DatagramPacket(buffer, buffer.length);