From 157176f01338f1ad983e575504c433706177a79e Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 14 Aug 2021 14:24:05 -0700 Subject: [PATCH] Off by one --- backend/sandbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/sandbox.js b/backend/sandbox.js index b3f6deb..aef507c 100644 --- a/backend/sandbox.js +++ b/backend/sandbox.js @@ -42,7 +42,7 @@ async function main() { let idx; while ((idx = buffer.indexOf("\n")) !== -1) { const line = buffer.slice(0, idx); - buffer = buffer.slice(idx + 2); + buffer = buffer.slice(idx + 1); if (line === "riju: container ready") { resolve(); } else {