abort request after onload to free ram

This commit is contained in:
Geißer Michael 2017-03-03 14:03:21 +01:00
parent bda31f033b
commit bc741920a4

View file

@ -176,6 +176,7 @@ function dlTest(done){
}.bind(this);
xhr[i].onload=function(){
//the large file has been loaded entirely, start again
xhr[i].abort();// reset the stream data to empty ram
testStream(i,0);
}.bind(this);
xhr[i].onerror=function(){