Fix bug with FTN export scheduler
This commit is contained in:
@@ -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.exportingEnd();
|
||||||
this.performExport( () => {
|
});
|
||||||
this.exportingEnd();
|
}
|
||||||
});
|
|
||||||
}, exportSchedule.sched);
|
}, exportSchedule.sched);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user