Skip to content

Commit

Permalink
Merge pull request librespeed#21 from geisserm/master
Browse files Browse the repository at this point in the history
Abort request after onload in download test to free RAM
  • Loading branch information
adolfintel authored Mar 3, 2017
2 parents bda31f0 + bc74192 commit c045707
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions speedtest_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down

0 comments on commit c045707

Please sign in to comment.