diff --git a/scripts/system/playRecordingAC.js b/scripts/system/playRecordingAC.js index 0c38f9e375..5db19c6b28 100644 --- a/scripts/system/playRecordingAC.js +++ b/scripts/system/playRecordingAC.js @@ -369,6 +369,10 @@ } function onMessageReceived(channel, message, sender) { + if (channel !== HIFI_RECORDER_CHANNEL) { + return; + } + message = JSON.parse(message); if (message.player === scriptUUID) { switch (message.command) { diff --git a/scripts/system/record.js b/scripts/system/record.js index 80ef7651b4..3be41e59ac 100644 --- a/scripts/system/record.js +++ b/scripts/system/record.js @@ -338,6 +338,10 @@ // Heartbeat from AC script. var index; + if (channel !== HIFI_RECORDER_CHANNEL) { + return; + } + message = JSON.parse(message); index = playerIDs.indexOf(sender);