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");