Skip to content

Commit

Permalink
Reduce the risk of race conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Aug 1, 2024
1 parent 290cb69 commit 063822f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/state/bankReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ let VoiceBank = class {
let upThis = this;
let sig = []; // Significance
let loadCount = 0, allCount = 0, prioCount = 0;
text.split("\n").forEach(async function (e, i) {
text.split("\n").forEach(function (e, i) {
let assign = e.split("\t"), to = [];
if (i == 0) {
assign.forEach(function (e0, i0) {
Expand All @@ -713,7 +713,7 @@ let VoiceBank = class {
};
} else {
let msb = 0, prg = 0, lsb = 0, name, poly = 1, type = 0, level, drum;
assign.forEach(async function (e1, i1) {
assign.forEach(function (e1, i1) {
switch (i1) {
case sig[0]: {
msb = parseInt(e1);
Expand Down

0 comments on commit 063822f

Please sign in to comment.