[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/bisocket ...
Ron Sigal
ron_sigal at yahoo.com
Sat Jul 21 02:28:26 EDT 2007
User: rsigal
Date: 07/07/21 02:28:26
Modified: src/main/org/jboss/remoting/transport/bisocket Tag:
remoting_2_2_0_SP4_CP BisocketClientInvoker.java
Log:
JBREM-779: In replaceControlSocket(), allows for Timer being shut down.
Revision Changes Path
No revision
No revision
1.1.2.13.2.2.2.2 +14 -2 JBossRemoting/src/main/org/jboss/remoting/transport/bisocket/BisocketClientInvoker.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BisocketClientInvoker.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/bisocket/BisocketClientInvoker.java,v
retrieving revision 1.1.2.13.2.2.2.1
retrieving revision 1.1.2.13.2.2.2.2
diff -u -b -r1.1.2.13.2.2.2.1 -r1.1.2.13.2.2.2.2
--- BisocketClientInvoker.java 20 Jun 2007 01:13:45 -0000 1.1.2.13.2.2.2.1
+++ BisocketClientInvoker.java 21 Jul 2007 06:28:26 -0000 1.1.2.13.2.2.2.2
@@ -421,10 +421,22 @@
synchronized (timerLock)
{
+ if (timer == null)
+ {
timer = new Timer(true);
}
+ try
+ {
timer.schedule(pingTimerTask, pingFrequency, pingFrequency);
}
+ catch (IllegalStateException e)
+ {
+ log.debug("Unable to schedule TimerTask on existing Timer", e);
+ timer = new Timer(true);
+ timer.schedule(pingTimerTask, pingFrequency, pingFrequency);
+ }
+ }
+ }
InvokerLocator getSecondaryLocator() throws Throwable
More information about the jboss-cvs-commits
mailing list