Skip to content

Commit

Permalink
fix 31b2623: debug() params are dropped in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Jan 9, 2025
1 parent 592047a commit 00a5666
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/port.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ export function createPortExec(getTarget, {lock, once} = {}, target) {

async function trackTarget(myQ) {
tracking = true;
while (!(await navLocks.query()).held.some(v => v.name === lock))
__.DEBUGPORT(PATH, 'waiting for lock', lock, await sleep(10));
while (!(await navLocks.query()).held.some(v => v.name === lock)) {
__.DEBUGPORT(PATH, 'waiting for lock', lock);
await sleep(10);
}
await navLocks.request(lock, NOP);
tracking = false;
__.DEBUGPORT(`${PATH} target disconnected`, target, lock, once);
Expand Down

0 comments on commit 00a5666

Please # to comment.