Avoid Solc to die because of compilation
This commit is contained in:
parent
10035fe46b
commit
5957be9571
|
@ -12,13 +12,14 @@ class ProcessWrapper {
|
|||
* Manages the log interception so that all console.* get sent back to the parent process
|
||||
* Also creates an Events instance. To use it, just do `this.events.[on|request]`
|
||||
*
|
||||
* @param {Options} _options Nothing for now
|
||||
* @param {Options} options pingParent: true by default
|
||||
*/
|
||||
constructor(_options) {
|
||||
constructor(options = {pingParent: true}) {
|
||||
this.interceptLogs();
|
||||
this.events = new Events();
|
||||
|
||||
this.pingParent();
|
||||
if(options.pingParent) {
|
||||
this.pingParent();
|
||||
}
|
||||
}
|
||||
|
||||
// Ping parent to see if it is still alive. Otherwise, let's die
|
||||
|
|
|
@ -10,7 +10,7 @@ const NpmTimer = require('../library_manager/npmTimer');
|
|||
class SolcProcess extends ProcessWrapper {
|
||||
|
||||
constructor(options){
|
||||
super();
|
||||
super({pingParent: false});
|
||||
this._logger = options.logger;
|
||||
this._showSpinner = options.showSpinner === true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue