Fix schedule issue
This commit is contained in:
parent
b903b2ee82
commit
a3ba57b0b8
|
@ -2177,8 +2177,8 @@ FTNMessageScanTossModule.prototype.startup = function(cb) {
|
|||
Log.debug(
|
||||
{
|
||||
schedule : this.moduleConfig.schedule.export,
|
||||
schedOK : -1 === exportSchedule.sched.error,
|
||||
next : moment(later.schedule(exportSchedule.sched).next(1)).format('ddd, MMM Do, YYYY @ h:m:ss a'),
|
||||
schedOK : -1 === _.get(exportSchedule, 'sched.error'),
|
||||
next : exportSchedule.sched ? moment(later.schedule(exportSchedule.sched).next(1)).format('ddd, MMM Do, YYYY @ h:m:ss a') : 'N/A',
|
||||
immediate : exportSchedule.immediate ? true : false,
|
||||
},
|
||||
'Export schedule loaded'
|
||||
|
@ -2206,8 +2206,8 @@ FTNMessageScanTossModule.prototype.startup = function(cb) {
|
|||
Log.debug(
|
||||
{
|
||||
schedule : this.moduleConfig.schedule.import,
|
||||
schedOK : -1 === importSchedule.sched.error,
|
||||
next : moment(later.schedule(importSchedule.sched).next(1)).format('ddd, MMM Do, YYYY @ h:m:ss a'),
|
||||
schedOK : -1 === _.get(importSchedule, 'sched.error'),
|
||||
next : importSchedule.sched ? moment(later.schedule(importSchedule.sched).next(1)).format('ddd, MMM Do, YYYY @ h:m:ss a') : 'N/A',
|
||||
watchFile : _.isString(importSchedule.watchFile) ? importSchedule.watchFile : 'None',
|
||||
},
|
||||
'Import schedule loaded'
|
||||
|
|
|
@ -203,7 +203,11 @@ exports.getModule = class WebSocketLoginServer extends LoginServerModule {
|
|||
ws.isConnectionAlive = false; // pong will reset this
|
||||
|
||||
Log.trace('Ping to remote WebSocket client');
|
||||
return ws.ping('', false); // false=don't mask
|
||||
try {
|
||||
ws.ping('', false); // false=don't mask
|
||||
} catch(e) { // don't barf on closing state
|
||||
/* nothing */
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue