Sfoglia il codice sorgente

Merge pull request #21 from geisserm/master

Abort request after onload in download test to free RAM
Federico Dossena 9 anni fa
parent
commit
c045707e09
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      speedtest_worker.js

+ 1 - 0
speedtest_worker.js

@@ -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(){