fixed transit status
This commit is contained in:
parent
a866aa79c4
commit
fe9a419318
1 changed files with 8 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue