Fix for recording playback server crash, #3337
This commit is contained in:
parent
d58953a0e1
commit
bcbfea559f
|
@ -3511,7 +3511,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||||
if (err) {
|
if (err) {
|
||||||
try { ws.close(); } catch (ex) { } // File does not exist
|
try { ws.close(); } catch (ex) { } // File does not exist
|
||||||
} else {
|
} else {
|
||||||
obj.fs.open(filefullpath, function (err, fd) {
|
obj.fs.open(filefullpath, 'r', function (err, fd) {
|
||||||
if (err == null) {
|
if (err == null) {
|
||||||
// When data is received from the web socket
|
// When data is received from the web socket
|
||||||
ws.on('message', function (msg) {
|
ws.on('message', function (msg) {
|
||||||
|
|
Loading…
Reference in New Issue