fix(node-agent): skip bridge spawn if FIFOs already exist (external bridge)
This commit is contained in:
parent
cf928d1a46
commit
e4154ea83a
1 changed files with 2 additions and 0 deletions
|
|
@ -86,6 +86,8 @@ function startDeltacastBridge() {
|
|||
if (_dcBridgeRunning()) return; // already up
|
||||
|
||||
try { fs.mkdirSync(DC_PIPE_DIR, { recursive: true }); } catch (_) {}
|
||||
const _v0 = DC_PIPE_DIR + '/video-0.fifo';
|
||||
if (fs.existsSync(_v0)) { console.log('[dc-bridge] FIFOs exist, skipping spawn'); return; }
|
||||
|
||||
const args = [
|
||||
'--device', DC_BOARD,
|
||||
|
|
|
|||
Loading…
Reference in a new issue