Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 41260 invoked from network); 10 Dec 2009 16:08:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Dec 2009 16:08:37 -0000 Received: (qmail 68837 invoked by uid 500); 10 Dec 2009 16:08:37 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 68794 invoked by uid 500); 10 Dec 2009 16:08:37 -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 68782 invoked by uid 99); 10 Dec 2009 16:08:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 16:08:34 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 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, 10 Dec 2009 16:08:32 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6E7CD23888C5; Thu, 10 Dec 2009 16:08:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r889308 - /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs Date: Thu, 10 Dec 2009 16:08:12 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091210160812.6E7CD23888C5@eris.apache.org> Author: tabish Date: Thu Dec 10 16:08:11 2009 New Revision: 889308 URL: http://svn.apache.org/viewvc?rev=889308&view=rev Log: Fix setting the Frame command on read. Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs?rev=889308&r1=889307&r2=889308&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs Thu Dec 10 16:08:11 2009 @@ -34,7 +34,7 @@ /// Used to mark the End of the Frame. public const byte FRAME_TERMINUS = (byte) 0; - private string commoand; + private string command; private IDictionary properties = new Hashtable(); private byte[] content; @@ -46,7 +46,7 @@ public StompFrame(string command) { - this.commoand = command; + this.command = command; } public byte[] Content @@ -57,8 +57,8 @@ public string Command { - get { return this.commoand; } - set { this.commoand = value; } + get { return this.command; } + set { this.command = value; } } public IDictionary Properties @@ -150,14 +150,13 @@ private void ReadCommandHeader(BinaryReader dataIn) { - string command; do { Tracer.Debug("Attempting to read in new Command"); - command = ReadLine(dataIn); + this.command = ReadLine(dataIn); } - while(command == ""); - Tracer.Debug("Read new Command: " + command); + while(this.command == ""); + Tracer.Debug("Read new Command: " + this.command); } private void ReadHeaders(BinaryReader dataIn)