[jboss-remoting-commits] JBoss Remoting SVN: r6348 - remoting2/branches/2.x/src/main/org/jboss/remoting/stream.
jboss-remoting-commits at lists.jboss.org
jboss-remoting-commits at lists.jboss.org
Fri Apr 29 17:18:21 EDT 2011
Author: ron.sigal at jboss.com
Date: 2011-04-29 17:18:21 -0400 (Fri, 29 Apr 2011)
New Revision: 6348
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/stream/StreamHandler.java
Log:
JBREM-1288: close() calls invokeOneway() and calls Client.disconnect().
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/stream/StreamHandler.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/stream/StreamHandler.java 2011-04-29 21:08:16 UTC (rev 6347)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/stream/StreamHandler.java 2011-04-29 21:18:21 UTC (rev 6348)
@@ -125,13 +125,17 @@
{
try
{
- streamClient.invoke(new StreamCallPayload(CLOSE));
+ streamClient.invokeOneway(new StreamCallPayload(CLOSE));
}
catch(Throwable throwable)
{
log.debug("Error closing client stream.", throwable);
throw new IOException(throwable.getMessage());
}
+ finally
+ {
+ streamClient.disconnect();
+ }
}
/**
More information about the jboss-remoting-commits
mailing list