From c120a678b1593fdb0d39011f3f6c6259687d3e10 Mon Sep 17 00:00:00 2001 From: David Thornley Date: Sun, 24 May 2020 03:00:24 +1000 Subject: [PATCH] Fix download command reliability Manifests as every second download failing, caused by missing command object reference. --- lib/connector/download.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connector/download.js b/lib/connector/download.js index 51c31f6..cb303e6 100755 --- a/lib/connector/download.js +++ b/lib/connector/download.js @@ -41,7 +41,7 @@ async function download(remoteName){ // close remote file for read try{ - ({response} = await _virtualTerminal.executeCommand(_luaCommandBuilder.fileClose)); + ({response} = await _virtualTerminal.executeCommand(_luaCommandBuilder.command.fileClose)); }catch(e){ _logger.debug(e); throw new Error('Cannot close remote file "' + remoteName + '"');