You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2015/01/09 15:54:30 UTC

svn commit: r1650549 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs

Author: tabish
Date: Fri Jan  9 14:54:30 2015
New Revision: 1650549

URL: http://svn.apache.org/r1650549
Log:
https://issues.apache.org/jira/browse/AMQNET-497

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

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs?rev=1650549&r1=1650548&r2=1650549&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs Fri Jan  9 14:54:30 2015
@@ -57,7 +57,7 @@ namespace Apache.NMS.ActiveMQ
 
         private int redeliveryTimeout = 500;
         protected bool disposed = false;
-        private long lastDeliveredSequenceId = 0;
+        private long lastDeliveredSequenceId = -1;
         private int ackCounter = 0;
         private int deliveredCounter = 0;
         private int additionalWindowSize = 0;
@@ -170,7 +170,7 @@ namespace Apache.NMS.ActiveMQ
             this.info.OptimizedAcknowledge = this.optimizeAcknowledge;
             this.failoverRedeliveryWaitPeriod = session.Connection.ConsumerFailoverRedeliveryWaitPeriod;
             this.nonBlockingRedelivery = session.Connection.NonBlockingRedelivery;
-            this.transactedIndividualAck = session.Connection.TransactedIndividualAck || 
+            this.transactedIndividualAck = session.Connection.TransactedIndividualAck ||
                                            session.Connection.MessagePrioritySupported ||
                                            this.nonBlockingRedelivery;
         }