create proc fixed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user