Kill the testworker to save memory usage
This commit is contained in:
@@ -1368,10 +1368,12 @@ define([
|
|||||||
errEv.preventDefault();
|
errEv.preventDefault();
|
||||||
errEv.stopPropagation();
|
errEv.stopPropagation();
|
||||||
noWorker = true;
|
noWorker = true;
|
||||||
|
worker.terminate();
|
||||||
w();
|
w();
|
||||||
};
|
};
|
||||||
worker.onmessage = function (ev) {
|
worker.onmessage = function (ev) {
|
||||||
if (ev.data === "OK") {
|
if (ev.data === "OK") {
|
||||||
|
worker.terminate();
|
||||||
w();
|
w();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user