mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 02:12:40 +01:00
Force Disable WebRTC if Windows is detected
Signed-off-by: Christopher Lentocha <christopherericlentocha@gmail.com>
This commit is contained in:
parent
036e3b2fbe
commit
b57ac746a4
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user