summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorLuciano Iam <lucianito@gmail.com>2020-04-22 11:16:55 +0200
committerRobin Gareus <robin@gareus.org>2020-04-22 21:59:35 +0200
commitb0733a0d2042e7baa41dbafc93744da3e54b5cbe (patch)
treee2a34e03d4aae7e5bfff6202dab65ba7f69fbcd5 /share
parent32f0e4e8be3a870e283f97c172eb5eb6123bcbbc (diff)
WebSockets: fix JS client get* methods
Diffstat (limited to 'share')
-rw-r--r--share/web_surfaces/shared/ardour.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/web_surfaces/shared/ardour.js b/share/web_surfaces/shared/ardour.js
index a3cb647143..800e9ffe7f 100644
--- a/share/web_surfaces/shared/ardour.js
+++ b/share/web_surfaces/shared/ardour.js
@@ -87,8 +87,8 @@ class BaseArdourClient {
async _sendAndReceive (node, addr, val) {
return new Promise((resolve, reject) => {
- const hash = this._send(node, addr, val).hash;
- this._pendingRequest = {resolve: resolve, hash: hash};
+ const nodeAddrId = this._send(node, addr, val).nodeAddrId;
+ this._pendingRequest = {resolve: resolve, nodeAddrId: nodeAddrId};
});
}
@@ -97,7 +97,7 @@ class BaseArdourClient {
}
_onChannelMessage (msg) {
- if (this._pendingRequest && (this._pendingRequest.hash == msg.hash)) {
+ if (this._pendingRequest && (this._pendingRequest.nodeAddrId == msg.nodeAddrId)) {
this._pendingRequest.resolve(msg.val);
this._pendingRequest = null;
} else {