[mod] titles of WS2P
This commit is contained in:
@@ -39,22 +39,21 @@ export function ws2pWatcher(conf: Conf) {
|
||||
|
||||
await c.connectAsInitiator()
|
||||
},
|
||||
|
||||
() => c.closed,
|
||||
|
||||
conf.waitingDelay,
|
||||
conf.recallDelay,
|
||||
|
||||
mail.onEstablished(conf, target),
|
||||
mail.onEstablished(conf, target, `[OK] WS2P on ${wserver.address}`),
|
||||
|
||||
// When a disconnection is detected
|
||||
mail.onDisconnect(conf, target),
|
||||
mail.onDisconnect(conf, target, `[FAILURE] WS2P on ${wserver.address}`),
|
||||
|
||||
async () => {
|
||||
console.log('Trying to connect to %s', target)
|
||||
},
|
||||
|
||||
mail.onRestartSuccess(conf, target),
|
||||
mail.onRestartSuccess(conf, target, `[RECOVERED] WS2P on ${wserver.address}`),
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user