From e75e6ceee141231ce9232540a67eee732de243fa Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 12 Oct 2010 02:59:37 +0000 Subject: [PATCH] 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_2@2034 9efc2488-bf62-4759-914b-345cdb29e865 --- src/javascript/opensrf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/javascript/opensrf.js b/src/javascript/opensrf.js index 5fb66c0..5f4c2d9 100644 --- a/src/javascript/opensrf.js +++ b/src/javascript/opensrf.js @@ -241,12 +241,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); } } -- 2.11.0