AMQ-3350: Fixed chat web demo which may swallow first message. Thanks to Ken 
Seiss for the patch.


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

Branch: refs/heads/activemq-5.9
Commit: fea4320f5214f8abf4ac6563d1f610f6422a29f3
Parents: 8238c4d
Author: Claus Ibsen <[email protected]>
Authored: Sun Nov 3 08:53:36 2013 +0100
Committer: Hadrian Zbarcea <[email protected]>
Committed: Wed Mar 12 08:31:55 2014 -0400

----------------------------------------------------------------------
 activemq-web-demo/src/main/webapp/js/amq.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/fea4320f/activemq-web-demo/src/main/webapp/js/amq.js
----------------------------------------------------------------------
diff --git a/activemq-web-demo/src/main/webapp/js/amq.js 
b/activemq-web-demo/src/main/webapp/js/amq.js
index 533cbe3..2d7cf6b 100644
--- a/activemq-web-demo/src/main/webapp/js/amq.js
+++ b/activemq-web-demo/src/main/webapp/js/amq.js
@@ -149,7 +149,7 @@ org.activemq.Amq = function() {
                if(sessionInitializedCallback) {
                        sessionInitializedCallback();
                }
-               sendPoll();
+               pollHandler(data);
        }
 
        var sendPoll = function() {

Reply via email to