Skip to content

Commit

Permalink
Force Disable WebRTC if Windows is detected
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Lentocha <[email protected]>
  • Loading branch information
CE1CECL committed Jan 5, 2024
1 parent 036e3b2 commit b57ac74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bundle/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit b57ac74

Please sign in to comment.