From 84523fe1eb57d6d938c055648540665dc3a7a826 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 12 Oct 2010 02:58:16 +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/trunk@2031 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 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); } } -- 2.11.0