[Opensrf-commits] r2034 - branches/rel_1_2/src/javascript (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Oct 11 22:59:39 EDT 2010


Author: erickson
Date: 2010-10-11 22:59:37 -0400 (Mon, 11 Oct 2010)
New Revision: 2034

Modified:
   branches/rel_1_2/src/javascript/opensrf.js
Log:
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

Modified: branches/rel_1_2/src/javascript/opensrf.js
===================================================================
--- branches/rel_1_2/src/javascript/opensrf.js	2010-10-12 02:59:07 UTC (rev 2033)
+++ branches/rel_1_2/src/javascript/opensrf.js	2010-10-12 02:59:37 UTC (rev 2034)
@@ -241,12 +241,12 @@
 
     // 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);
     }
 }
 



More information about the opensrf-commits mailing list