Browse files

fix on operator

  • Loading branch information...
1 parent 931da54 commit d44949555ff7086252cfcca2b178d4940f4a319b mnichols committed Aug 3, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rhino.ServiceBus/Impl/DefaultServiceBus.cs
View
4 Rhino.ServiceBus/Impl/DefaultServiceBus.cs
@@ -352,10 +352,10 @@ private bool PublishInternal(object[] messages)
throw new MessagePublicationException("Cannot publish an empty message batch");
IEnumerable<Uri> subscriptions=new Uri[0];
- var index = -1;
+ var index = 0;
do
{
- subscriptions = subscriptionStorage.GetSubscriptionsFor(messages[++index].GetType());
+ subscriptions = subscriptionStorage.GetSubscriptionsFor(messages[index++].GetType());
} while ((messages.Length > index && subscriptions.Count() == 0));
foreach (Uri subscription in subscriptions)

0 comments on commit d449495

Please sign in to comment.