From 00a56665f07a0abc6c57a67273d86e1b919bbd9e Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 9 Jan 2025 14:39:52 +0300 Subject: [PATCH] fix 31b26233: debug() params are dropped in prod --- src/js/port.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/port.js b/src/js/port.js index 3b011ed043..53c2df9b11 100644 --- a/src/js/port.js +++ b/src/js/port.js @@ -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);