activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgo...@apache.org
Subject svn commit: r783946 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Discovery/DiscoveryTransportFactory.cs
Date Thu, 11 Jun 2009 22:31:36 GMT
Author: jgomes
Date: Thu Jun 11 22:31:36 2009
New Revision: 783946

URL: http://svn.apache.org/viewvc?rev=783946&view=rev
Log:
Add lock when modifying variable.

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Discovery/DiscoveryTransportFactory.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Discovery/DiscoveryTransportFactory.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Discovery/DiscoveryTransportFactory.cs?rev=783946&r1=783945&r2=783946&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Discovery/DiscoveryTransportFactory.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Discovery/DiscoveryTransportFactory.cs
Thu Jun 11 22:31:36 2009
@@ -43,7 +43,10 @@
 		
 		public DiscoveryTransportFactory()
 		{
-			currentServiceName = String.Empty;
+			lock(uriLock)
+			{
+				currentServiceName = String.Empty;
+			}
 		}
 		
 		public static Uri DiscoveredUri



Mime
View raw message