parent
3ccdd3d017
commit
5cef820749
|
@ -330,13 +330,13 @@ Speedtest.prototype = {
|
||||||
console.error("Speedtest onupdate event threw exception: " + e);
|
console.error("Speedtest onupdate event threw exception: " + e);
|
||||||
}
|
}
|
||||||
if (data.testState >= 4) {
|
if (data.testState >= 4) {
|
||||||
|
clearInterval(this.updater);
|
||||||
|
this._state = 4;
|
||||||
try {
|
try {
|
||||||
if (this.onend) this.onend(data.testState == 5);
|
if (this.onend) this.onend(data.testState == 5);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("Speedtest onend event threw exception: " + e);
|
console.error("Speedtest onend event threw exception: " + e);
|
||||||
}
|
}
|
||||||
clearInterval(this.updater);
|
|
||||||
this._state = 4;
|
|
||||||
}
|
}
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
this.updater = setInterval(
|
this.updater = setInterval(
|
||||||
|
|
Loading…
Reference in a new issue