Merge pull request #21 from geisserm/master
Abort request after onload in download test to free RAM
This commit is contained in:
commit
c045707e09
1 changed files with 1 additions and 0 deletions
|
@ -176,6 +176,7 @@ function dlTest(done){
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
xhr[i].onload=function(){
|
xhr[i].onload=function(){
|
||||||
//the large file has been loaded entirely, start again
|
//the large file has been loaded entirely, start again
|
||||||
|
xhr[i].abort();// reset the stream data to empty ram
|
||||||
testStream(i,0);
|
testStream(i,0);
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
xhr[i].onerror=function(){
|
xhr[i].onerror=function(){
|
||||||
|
|
Loading…
Reference in a new issue