|
|
@ -88,10 +88,18 @@ class eMessagePuppeteerConnector extends Connector {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
await sendPromise()
|
|
|
|
await sendPromise()
|
|
|
|
|
|
|
|
.then(_=>{
|
|
|
|
|
|
|
|
this.connectorRegistry.reportState(msg, UUID, 'transit')
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
|
|
|
})
|
|
|
|
} catch (e1) {
|
|
|
|
} catch (e1) {
|
|
|
|
console.error(e1)
|
|
|
|
console.error(e1)
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
await sendPromise()
|
|
|
|
await sendPromise()
|
|
|
|
|
|
|
|
.then(_=>{
|
|
|
|
|
|
|
|
this.connectorRegistry.reportState(msg, UUID, 'transit')
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
|
|
|
})
|
|
|
|
} catch (e2) {
|
|
|
|
} catch (e2) {
|
|
|
|
console.error(e2)
|
|
|
|
console.error(e2)
|
|
|
|
await sendPromise()
|
|
|
|
await sendPromise()
|
|
|
|