mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-23 19:20:41 +02:00
Fix bug with FTN export scheduler
This commit is contained in:
parent
3af1858c39
commit
4cea9e023a
1 changed files with 12 additions and 8 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -1214,7 +1217,7 @@ function FTNMessageScanTossModule() {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
// ends an export block
|
// ends an export block
|
||||||
this.exportingEnd = function() {
|
this.exportingEnd = function() {
|
||||||
this.exportRunning = false;
|
this.exportRunning = false;
|
||||||
|
@ -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…
Add table
Add a link
Reference in a new issue