Commit e606e217 authored by Skye Yu's avatar Skye Yu

test:

parent 0d599743
...@@ -735,7 +735,7 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress) ...@@ -735,7 +735,7 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
ondata(msg.body); ondata(msg.body);
if (flen >= length) { if (flen >= length) {
document.removeEventListener('visibilitychange', visibilitychange); document.removeEventListener('visibilitychange', visibilitychange);
Logger.info('file download finish.') Logger.info('jensen', 'getFile','file download finish.')
removeAudio(); removeAudio();
// return OK indicates all file blocks received // return OK indicates all file blocks received
return 'OK'; return 'OK';
...@@ -743,7 +743,7 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress) ...@@ -743,7 +743,7 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
} else { } else {
document.removeEventListener('visibilitychange', visibilitychange); document.removeEventListener('visibilitychange', visibilitychange);
removeAudio(); removeAudio();
Logger.info('file download fail.') Logger.info('jensen', 'getFile','file download fail.')
ondata('fail'); ondata('fail');
} }
}; };
......
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