From: erickson Date: Tue, 12 Oct 2010 02:58:44 +0000 (+0000) Subject: when we add xhr responses onto the end of the queue, stash the original session as... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=46c80d7bb3e71f50c62586c0140bcc51cba3b5c6;p=OpenSRF.git when we add xhr responses onto the end of the queue, stash the original session as well, otherwise we're attempting to ask a session questions about requests it's not tracking git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/rel_1_6@2032 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/javascript/opensrf.js b/src/javascript/opensrf.js index f85682c..d5553c3 100644 --- a/src/javascript/opensrf.js +++ b/src/javascript/opensrf.js @@ -256,12 +256,12 @@ OpenSRF.Stack.push = function(net_msg, callbacks) { // push the latest responses onto the end of the inbound message queue for(var i = 0; i < osrf_msgs.length; i++) - OpenSRF.Stack.queue.push({msg : osrf_msgs[i], callbacks : callbacks}); + OpenSRF.Stack.queue.push({msg : osrf_msgs[i], callbacks : callbacks, ses : ses}); // continue processing responses, oldest to newest while(OpenSRF.Stack.queue.length) { var data = OpenSRF.Stack.queue.shift(); - OpenSRF.Stack.handle_message(ses, data.msg, data.callbacks); + OpenSRF.Stack.handle_message(data.ses, data.msg, data.callbacks); } }