Merged revision(s) 1375156 from activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x:
Fix compile for .NET-CF 2.0. Fixes https://issues.apache.org/jira/browse/AMQNET-394
diff --git a/src/main/csharp/Connection.cs b/src/main/csharp/Connection.cs
index 54211de..5bac841 100755
--- a/src/main/csharp/Connection.cs
+++ b/src/main/csharp/Connection.cs
@@ -690,8 +690,10 @@
}
}
- Tracer.Error("No such consumer active: " + dispatch.ConsumerId);
- transport.Oneway(new RemoveInfo() { ObjectId = dispatch.ConsumerId });
+ Tracer.Error("No such consumer active: {0}. Removing...", dispatch.ConsumerId);
+ RemoveInfo info = new RemoveInfo();
+ info.ObjectId = dispatch.ConsumerId;
+ transport.Oneway(info);
}
protected void OnTransportException(ITransport sender, Exception exception)