From 1cc215e14b4cd17294402ca7ba709ddcd39947c3 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Mon, 10 Apr 2017 15:31:38 +1200 Subject: [PATCH] Fix test that recording just made started playing --- scripts/system/record.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/system/record.js b/scripts/system/record.js index 6e2f6135de..793315fa55 100644 --- a/scripts/system/record.js +++ b/scripts/system/record.js @@ -341,7 +341,7 @@ })); Script.setTimeout(function () { - if (playerRecordings.indexOf(recording) === -1) { + if (!playerIsPlaying[index] || playerRecordings[index] !== recording) { error("Didn't start playing recording " + recording.slice(4) + "!"); // Remove leading "atp:" from recording. }