Skip to content

Commit

Permalink
Do not require port polling utility on top of the PM
Browse files Browse the repository at this point in the history
  • Loading branch information
kirrg001 committed Feb 4, 2018
1 parent 0073989 commit 4002815
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/process-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const every = require('lodash/every');
const merge = require('lodash/merge');
const portPolling = require('./utils/port-polling');
const requiredMethods = [
'start',
'stop',
Expand Down Expand Up @@ -69,6 +68,8 @@ class ProcessManager {
* @returns {Promise<any>}
*/
ensureStarted(options) {
const portPolling = require('./utils/port-polling');

options = merge({
stopOnError: true,
port: this.instance.config.get('server.port')
Expand Down

0 comments on commit 4002815

Please sign in to comment.