activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [69/69] [abbrv] activemq-artemis git commit: fixing slow consumer
Date Thu, 31 Mar 2016 02:31:51 GMT
fixing slow consumer


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/8f3db598
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/8f3db598
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/8f3db598

Branch: refs/heads/refactor-openwire
Commit: 8f3db59866a38845db15ccb7812f4d3f028e9f77
Parents: dc03f8f
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Fri Mar 18 15:01:00 2016 -0400
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Wed Mar 30 22:29:44 2016 -0400

----------------------------------------------------------------------
 .../activemq/artemis/core/server/impl/ServerConsumerImpl.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/8f3db598/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerConsumerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerConsumerImpl.java
b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerConsumerImpl.java
index 298bf5f..14f22ed 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerConsumerImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerConsumerImpl.java
@@ -242,7 +242,9 @@ public class ServerConsumerImpl implements ServerConsumer, ReadyListener
{
 
    @Override
    public void fireSlowConsumer() {
-      slowConsumerListener.onSlowConsumer(this);
+      if (slowConsumerListener != null) {
+         slowConsumerListener.onSlowConsumer(this);
+      }
    }
 
    @Override


Mime
View raw message