Commit ed5a4d13 authored by IamIpanda's avatar IamIpanda

Pass room as this to rawSpawn for getting more information

parent d2878288
Pipeline #42774 passed with stages
in 8 minutes and 49 seconds
......@@ -1470,7 +1470,7 @@ class Room
param.push(firstSeedBuf.toString('base64'))
try
@process = global.rawSpawn param
@process = global.rawSpawn.call this, param
@process_pid = @process.pid
@process.on 'error', (err)=>
log.warn 'CREATE ROOM ERROR', err
......
......@@ -1907,7 +1907,7 @@
param.push(firstSeedBuf.toString('base64'));
}
try {
this.process = global.rawSpawn(param);
this.process = global.rawSpawn.call(this, param);
this.process_pid = this.process.pid;
this.process.on('error', (err) => {
log.warn('CREATE ROOM ERROR', err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment