activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r383315 - in /incubator/activemq/trunk/openwire-dotnet: src/ActiveMQ/Transport/Tcp/TcpTransport.cs tests/JMS/JMSTestSupport.cs
Date Sun, 05 Mar 2006 13:20:49 GMT
Author: chirino
Date: Sun Mar  5 05:20:48 2006
New Revision: 383315

URL: http://svn.apache.org/viewcvs?rev=383315&view=rev
Log:
Don't report errors if the transport is being closed.


Modified:
    incubator/activemq/trunk/openwire-dotnet/src/ActiveMQ/Transport/Tcp/TcpTransport.cs
    incubator/activemq/trunk/openwire-dotnet/tests/JMS/JMSTestSupport.cs

Modified: incubator/activemq/trunk/openwire-dotnet/src/ActiveMQ/Transport/Tcp/TcpTransport.cs
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-dotnet/src/ActiveMQ/Transport/Tcp/TcpTransport.cs?rev=383315&r1=383314&r2=383315&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-dotnet/src/ActiveMQ/Transport/Tcp/TcpTransport.cs (original)
+++ incubator/activemq/trunk/openwire-dotnet/src/ActiveMQ/Transport/Tcp/TcpTransport.cs Sun
Mar  5 05:20:48 2006
@@ -114,9 +114,19 @@
                 {
                     break;
                 }
+				catch ( IOException e) {
+					if( e.GetBaseException() is ObjectDisposedException ) {
+						break;
+					}
+					if( !closed ) {
+						this.exceptionHandler(this,e);
+					}
+				}
                 catch (Exception e)
                 {
-                    this.exceptionHandler(this,e);
+					if( !closed ) {
+						this.exceptionHandler(this,e);
+					}
                 }
             }
         }

Modified: incubator/activemq/trunk/openwire-dotnet/tests/JMS/JMSTestSupport.cs
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-dotnet/tests/JMS/JMSTestSupport.cs?rev=383315&r1=383314&r2=383315&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-dotnet/tests/JMS/JMSTestSupport.cs (original)
+++ incubator/activemq/trunk/openwire-dotnet/tests/JMS/JMSTestSupport.cs Sun Mar  5 05:20:48
2006
@@ -65,10 +65,10 @@
         {
             if (connection != null)
             {
-				Console.WriteLine("Disconnectting...");
+				Console.WriteLine("Disconnecting...");
                 connection.Dispose();
                 connection = null;
-				Console.WriteLine("Disconnectted.");
+				Console.WriteLine("Disconnected.");
             }
         }
         



Mime
View raw message