Commit 7f7d802c authored by martin hou's avatar martin hou

fix: add return value for handler to end command

parent 3c040d2c
...@@ -823,6 +823,7 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress) ...@@ -823,6 +823,7 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
clearEventAndTask(); clearEventAndTask();
Logger.info('jensen', 'getFile', 'file download fail.'); Logger.info('jensen', 'getFile', 'file download fail.');
ondata('fail'); ondata('fail');
return 'fail';
} }
}; };
this.onreceive = onprogress; this.onreceive = onprogress;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment