From bcbfea559fc1c4174d3d3748ea69f4b6166f9ad2 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 13 Dec 2021 13:20:04 -0800 Subject: [PATCH] Fix for recording playback server crash, #3337 --- webserver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver.js b/webserver.js index 98338413..79a460ec 100644 --- a/webserver.js +++ b/webserver.js @@ -3511,7 +3511,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF if (err) { try { ws.close(); } catch (ex) { } // File does not exist } else { - obj.fs.open(filefullpath, function (err, fd) { + obj.fs.open(filefullpath, 'r', function (err, fd) { if (err == null) { // When data is received from the web socket ws.on('message', function (msg) {