Skip to content

Commit

Permalink
Tiny bug fix, reserved for RC 2 or 0.5 stable.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Oct 21, 2023
1 parent c0224c2 commit 3baa136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/state/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1049,10 +1049,10 @@ let OctaviaDevice = class extends CustomEventSource {
// Can be optimized to move elements instead
let tree = [];
this.#chReceive.forEach((e, i) => {
if (!tree[e]?.constructor) {
tree[e] = [];
};
if (e < allocated.ch) {
if (!tree[e]?.constructor) {
tree[e] = [];
};
// Remove disabled channels
tree[e].push(i);
};
Expand Down

0 comments on commit 3baa136

Please sign in to comment.