Skip to content

Commit

Permalink
[refactor] Inherit from broadway.App
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Dec 9, 2011
1 parent d945bb2 commit 8a9af6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/forever/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
var util = require('util'),
fs = require('fs'),
path = require('path'),
events = require('events'),
spawn = require('child_process').spawn,
winston = require('winston'),
watch = require('watch'),
minimatch = require('minimatch'),
broadway = require('broadway'),
psTree = require('ps-tree'),
utile = require('utile'),
forever = require('../forever');
Expand All @@ -26,7 +26,7 @@ var util = require('util'),
//
var Monitor = exports.Monitor = function (script, options) {
var self = this;
events.EventEmitter.call(this);
broadway.App.call(this);

//
// Setup basic configuration options
Expand Down Expand Up @@ -133,7 +133,7 @@ var Monitor = exports.Monitor = function (script, options) {
};

// Inherit from events.EventEmitter
util.inherits(Monitor, events.EventEmitter);
util.inherits(Monitor, broadway.App);

//
// ### function start ([restart])
Expand Down

0 comments on commit 8a9af6b

Please sign in to comment.