create proc fixed

This commit is contained in:
C
2022-12-15 14:26:44 +05:00
parent 39790bdd2a
commit 76130224ac
+2 -8
View File
@@ -65,10 +65,7 @@ module.exports.create_session = async (req, res, next) => {
detached: true
})
app_proc.on('error', function(err) {
logger_runtime.error(err)
response = {msg:'APP_PROC_ERROR'}
callback(response)
return
throw new Error('create proc error')
})
app_proc.on('close', (code) => {
app_port_alloc.free(app_port)
@@ -79,10 +76,7 @@ module.exports.create_session = async (req, res, next) => {
detached: true
})
webrtc_proc.on('error', function(err) {
logger_runtime.error(err)
response = {msg:'WEBRTC_PROC_ERROR'}
callback(response)
return
throw new Error('create webrtc error')
})
webrtc_proc.on('close', (code) => {
http_port_alloc.free(http_port)