From b57ac746a4c4755d2615d157eda7677ea5ff5337 Mon Sep 17 00:00:00 2001 From: Christopher Lentocha Date: Fri, 5 Jan 2024 15:30:02 -0500 Subject: [PATCH] Force Disable WebRTC if Windows is detected Signed-off-by: Christopher Lentocha --- src/bundle/start.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bundle/start.ts b/src/bundle/start.ts index 7e7b65c69..bc296db49 100644 --- a/src/bundle/start.ts +++ b/src/bundle/start.ts @@ -75,7 +75,7 @@ Cores: ${cyan(os.cpus().length)} (Using ${cores} thread(s).) console.log(`[Process] starting with ${cores} threads`); if (cores === 1) { - if (process.env.WEBRTC_DISABLE == "1") { + if (process.env.WEBRTC_DISABLE == "1" || process.platform == "win32") { require("./WinServer"); } else { require("./Server"); @@ -111,7 +111,7 @@ Cores: ${cyan(os.cpus().length)} (Using ${cores} thread(s).) }); } } else { - if (process.env.WEBRTC_DISABLE == "1") { + if (process.env.WEBRTC_DISABLE == "1" || process.platform == "win32") { require("./WinServer"); } else { require("./Server");