From 2cf93448e2ba2540b7fc3ea2f939f62621488420 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 5 Feb 2015 10:34:40 -0500 Subject: [PATCH] LP#1418613 per-tab websocket send() JS thinko repair Avoid referencing variable defined somewhere outside the send_ws() function. Doing so happened to result in re-sending the same message twice in some cases. Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- src/javascript/opensrf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/javascript/opensrf.js b/src/javascript/opensrf.js index ecc012d..d67fbfd 100644 --- a/src/javascript/opensrf.js +++ b/src/javascript/opensrf.js @@ -284,7 +284,7 @@ OpenSRF.Session.prototype.send_ws = function(osrf_msg) { var json = js2JSON({ service : this.service, thread : this.thread, - osrf_msg : [message.serialize()] + osrf_msg : [osrf_msg.serialize()] }); OpenSRF.websocketConnection.send(json); -- 2.43.2