Skip to content

Commit

Permalink
Fix issue with high memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimbatt committed Dec 1, 2023
1 parent 56c22ec commit afe2f12
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
Expand Down Expand Up @@ -840,7 +840,7 @@ function SetupSha1WithoutWorkers() {
}
selectedWorker.postMessage(data, [data.data.buffer]);
selectedWorker.onmessage = function (ev) {
busyWorkers["delete"](selectedIndex);
busyWorkers.delete(selectedIndex);
if (waitingTasks.length !== 0) {
var task = waitingTasks.shift();
if (task)
Expand Down
Loading

0 comments on commit afe2f12

Please sign in to comment.