mailing: added queue
This commit is contained in:
@@ -44,16 +44,16 @@ export function ws2pWatcher(conf: Conf) {
|
||||
conf.waitingDelay,
|
||||
conf.recallDelay,
|
||||
|
||||
mail.onEstablished(conf, target, `State OK WS2P on ${wserver.address}`),
|
||||
mail.onEstablished(target, `State OK WS2P on ${wserver.address}`),
|
||||
|
||||
// When a disconnection is detected
|
||||
mail.onDisconnect(conf, target, `State FAILURE WS2P on ${wserver.address}`),
|
||||
mail.onDisconnect(target, `State FAILURE WS2P on ${wserver.address}`),
|
||||
|
||||
async () => {
|
||||
console.log('Trying to connect to %s', target)
|
||||
},
|
||||
|
||||
mail.onRestartSuccess(conf, target, `State RECOVERED WS2P on ${wserver.address}`),
|
||||
mail.onRestartSuccess(target, `State RECOVERED WS2P on ${wserver.address}`),
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user