Skip to content

Commit 1674b9c

Browse files
committed
2 parents 716f1f2 + 416dcb7 commit 1674b9c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

controller.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Controls Adapter-Processes
55
*
6-
* Copyright 2013-2016 bluefox <dogafox@gmail.com>, hobbyquaker <hq@ccu.io>
6+
* Copyright 2013-2017 bluefox <dogafox@gmail.com>, hobbyquaker <hq@ccu.io>
77
*
88
*/
99

@@ -159,7 +159,7 @@ function logRedirect(isActive, id) {
159159
}
160160

161161
logger.info('host.' + hostname + ' ' + tools.appName + '.js-controller version ' + version + ' ' + ioPackage.common.name + ' starting');
162-
logger.info('host.' + hostname + ' Copyright (c) 2014-2016 bluefox, hobbyquaker');
162+
logger.info('host.' + hostname + ' Copyright (c) 2014-2017 bluefox, hobbyquaker');
163163
logger.info('host.' + hostname + ' hostname: ' + hostname + ', node: ' + process.version);
164164
logger.info('host.' + hostname + ' ip addresses: ' + getIPs().join(' '));
165165

@@ -502,7 +502,7 @@ function cleanAutoSubscribe(instance, autoInstance, callback) {
502502
return;
503503
}
504504
var modified = false;
505-
// look for all subscribes from this instance
505+
// look for all subscribes from this instance
506506
for (var pattern in subs) {
507507
if (!subs.hasOwnProperty(pattern)) continue;
508508
for (var id in subs[pattern]) {
@@ -523,7 +523,7 @@ function cleanAutoSubscribe(instance, autoInstance, callback) {
523523
delete subs[pattern];
524524
}
525525
}
526-
526+
527527
if (modified) {
528528
outputCount++;
529529
states.setState(autoInstance + '.subscribes', subs, function () {
@@ -542,7 +542,7 @@ function cleanAutoSubscribe(instance, autoInstance, callback) {
542542
function cleanAutoSubscribes(instance, callback) {
543543
// instance = 'system.adapter.name.0'
544544
instance = instance.substring(15); // get name.0
545-
545+
546546
// read all instances
547547
objects.getObjectView('system', 'instance', {startkey: 'system.adapter.', endkey: 'system.adapter.\u9999'}, function (err, res) {
548548
var count = 0;
@@ -552,7 +552,7 @@ function cleanAutoSubscribes(instance, callback) {
552552
if (res.rows[c].value.common.subscribable) {
553553
count++;
554554
cleanAutoSubscribe(instance, res.rows[c].id, function () {
555-
if (!--count && callback) callback();
555+
if (!--count && callback) callback();
556556
});
557557
}
558558
}
@@ -1828,7 +1828,7 @@ function startInstance(id, wakeUp) {
18281828
outputCount += 2;
18291829
states.setState(id + '.alive', {val: false, ack: true, from: 'system.host.' + hostname});
18301830
states.setState(id + '.connected', {val: false, ack: true, from: 'system.host.' + hostname});
1831-
1831+
18321832
cleanAutoSubscribes(id);
18331833

18341834
if (procs[id] && procs[id].config && procs[id].config.common.logTransporter) {
@@ -1919,7 +1919,7 @@ function startInstance(id, wakeUp) {
19191919
logger.warn('host.' + hostname + ' instance ' + instance._id + ' does not started, because just executed');
19201920
return;
19211921
}
1922-
1922+
19231923
// Remember the last run
19241924
procs[id].lastStart = new Date().getTime();
19251925
if (!procs[id].process) {

0 commit comments

Comments
 (0)