Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 20701 invoked from network); 11 Jun 2009 22:31:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jun 2009 22:31:49 -0000 Received: (qmail 29735 invoked by uid 500); 11 Jun 2009 22:32:01 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 29708 invoked by uid 500); 11 Jun 2009 22:32:01 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 29699 invoked by uid 99); 11 Jun 2009 22:32:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 22:32:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 22:31:57 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D8D26238888E; Thu, 11 Jun 2009 22:31:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@activemq.apache.org From: jgomes@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090611223136.D8D26238888E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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