Permalink
Browse files

Maintenance feature: if maintenance service is not checked

  • Loading branch information...
1 parent f0974a4 commit f07c2d05a37d85e3d92d9d2d0bef2fc11e31d58a @obazoud obazoud committed Jan 29, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 api.js
View
8 api.js
@@ -106,9 +106,11 @@ 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], function(status, service) {
- controller.emit(status, service);
- });
+ if (status.services[i].status !== 'maintenance') {
+ sources[settings.services[i].check].call(null, settings.services[i], status.services[i], function(status, service) {
+ controller.emit(status, service);
+ });
+ }
}
/**

0 comments on commit f07c2d0

Please sign in to comment.