Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix call to eventemitter

  • Loading branch information...
commit 874b4f73c65df44267de6f9704598a76cf10930b 1 parent ee9cb17
@chamerling chamerling 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.