sfu disabled
This commit is contained in:
+13
-12
@@ -19,7 +19,7 @@ const run_session = async (req, res, next) => {
|
||||
|
||||
let webrtc_port = await get_webrtc_port()
|
||||
let app_port = await get_app_port()
|
||||
let sfu_port = await get_sfu_port()
|
||||
let sfu_port = 8889//await get_sfu_port()
|
||||
|
||||
if (!app_port) {
|
||||
next(new server_error('all app ports busy'))
|
||||
@@ -27,10 +27,11 @@ const run_session = async (req, res, next) => {
|
||||
} else if (!webrtc_port) {
|
||||
next(new server_error('all webrtc ports busy'))
|
||||
return
|
||||
} else if (!sfu_port) {
|
||||
next(new server_error('all sfu ports busy'))
|
||||
return
|
||||
}
|
||||
}
|
||||
// else if (!sfu_port) {
|
||||
// next(new server_error('all sfu ports busy'))
|
||||
// return
|
||||
// }
|
||||
|
||||
let app_pid = await run_app(app_path, app_port)
|
||||
if (!app_pid) {
|
||||
@@ -47,13 +48,13 @@ const run_session = async (req, res, next) => {
|
||||
return
|
||||
}
|
||||
|
||||
let sfu_pid = await run_sfu(sfu_port)
|
||||
if (!sfu_pid) {
|
||||
kill_proc(app_pid)
|
||||
kill_proc(webrtc_pid)
|
||||
next(new server_error('can not run sfu'))
|
||||
return
|
||||
}
|
||||
let sfu_pid = null //await run_sfu(sfu_port)
|
||||
// if (!sfu_pid) {
|
||||
// kill_proc(app_pid)
|
||||
// kill_proc(webrtc_pid)
|
||||
// next(new server_error('can not run sfu'))
|
||||
// return
|
||||
// }
|
||||
|
||||
|
||||
let add_runnning_session_result = await database.add_running_session(session_id, title, app_pid, webrtc_pid, sfu_pid, app_port, webrtc_port, sfu_port)
|
||||
|
||||
Reference in New Issue
Block a user