mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
WebSockets: fix JS client get* methods
This commit is contained in:
parent
32f0e4e8be
commit
b0733a0d20
1 changed files with 3 additions and 3 deletions
|
|
@ -87,8 +87,8 @@ class BaseArdourClient {
|
||||||
|
|
||||||
async _sendAndReceive (node, addr, val) {
|
async _sendAndReceive (node, addr, val) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const hash = this._send(node, addr, val).hash;
|
const nodeAddrId = this._send(node, addr, val).nodeAddrId;
|
||||||
this._pendingRequest = {resolve: resolve, hash: hash};
|
this._pendingRequest = {resolve: resolve, nodeAddrId: nodeAddrId};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -97,7 +97,7 @@ class BaseArdourClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
_onChannelMessage (msg) {
|
_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.resolve(msg.val);
|
||||||
this._pendingRequest = null;
|
this._pendingRequest = null;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue