Fix bug with FTN export scheduler
This commit is contained in:
parent
3af1858c39
commit
4cea9e023a
|
@ -803,6 +803,9 @@ function FTNMessageScanTossModule() {
|
||||||
],
|
],
|
||||||
err => {
|
err => {
|
||||||
// :TODO: do something with |err| ?
|
// :TODO: do something with |err| ?
|
||||||
|
if(err) {
|
||||||
|
Log.warn(err.message);
|
||||||
|
}
|
||||||
nextUplink();
|
nextUplink();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -1263,14 +1266,15 @@ FTNMessageScanTossModule.prototype.startup = function(cb) {
|
||||||
'Export schedule loaded'
|
'Export schedule loaded'
|
||||||
);
|
);
|
||||||
|
|
||||||
if(exportSchedule.sched && this.exportingStart()) {
|
if(exportSchedule.sched) {
|
||||||
this.exportTimer = later.setInterval( () => {
|
this.exportTimer = later.setInterval( () => {
|
||||||
|
if(this.exportingStart()) {
|
||||||
Log.info( { module : exports.moduleInfo.name }, 'Performing scheduled message scan/export...');
|
Log.info( { module : exports.moduleInfo.name }, 'Performing scheduled message scan/export...');
|
||||||
|
|
||||||
this.performExport( () => {
|
this.performExport( () => {
|
||||||
this.exportingEnd();
|
this.exportingEnd();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}, exportSchedule.sched);
|
}, exportSchedule.sched);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue