activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r824881 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs
Date Tue, 13 Oct 2009 18:55:24 GMT
Author: tabish
Date: Tue Oct 13 18:55:24 2009
New Revision: 824881

URL: http://svn.apache.org/viewvc?rev=824881&view=rev
Log:
Disable sending some onException calls after the Connection has started closing, nothing the
client can do about these at that point anyway.

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs?rev=824881&r1=824880&r2=824881&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs Tue Oct
13 18:55:24 2009
@@ -297,6 +297,7 @@
 						transport.Oneway(shutdowninfo);
 					}
 
+                    Tracer.Info("Disposing of the Transport.");
 					transport.Dispose();
 				}
 				catch(Exception ex)
@@ -606,6 +607,7 @@
 				{
 					if(connected)
 					{
+                        Tracer.Info("Returning KeepAliveInfo Response.");
 						info.ResponseRequired = false;
 						transport.Oneway(info);
 					}
@@ -622,7 +624,7 @@
 
 		protected void OnException(ITransport sender, Exception exception)
 		{
-			if(ExceptionListener != null)
+			if(ExceptionListener != null && !this.closing)
 			{
 				try
 				{



Mime
View raw message