Skip to content

Commit

Permalink
fix: avoid null _child
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Apr 9, 2020
1 parent 25477cb commit ef82cfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/xarc-app-dev/lib/dev-admin/admin-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ ${info.name} - assuming it started.</>`);
pendingMessages.push(data);
return false;
} else {
this._io.show(ck`<orange>${info.name} (PID: ${info._child.pid}) started</>`);
const pid = _.get(info, "_child.pid");
this._io.show(ck`<orange>${info.name} (PID: ${pid}) started</>`);
}

started = true;
Expand Down

0 comments on commit ef82cfd

Please sign in to comment.