Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #42 from chamerling/master

Fix calls to EventEmitter
  • Loading branch information...
commit feb5834d29e388f1cc1cab43badc4835ac65751d 2 parents ee9cb17 + 874b4f7
@obazoud obazoud authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 api.js
View
4 api.js
@@ -98,7 +98,9 @@ module.exports.checkAllServices = function() {
status.services[i].statusCode = 0;
status.services[i].message = '';
- sources[settings.services[i].check].call(null, settings.services[i], status.services[i], controller.emit);
+ sources[settings.services[i].check].call(null, settings.services[i], status.services[i], function(status, service) {
+ controller.emit(status, service);
+ });
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.