disabled Connectors now fail in a known way instead of breaking DeliveryChain

master
cheetah 4 years ago
parent e619c7d330
commit fdf3c3bf64

@ -14,7 +14,10 @@ class ConnectorRegistry {
connector.Hook(this) connector.Hook(this)
} }
transmit(name, msg, params) { transmit(name, msg, params) {
if (!this.Connectors[ name ]) throw "not registred" if (!this.Connectors[ name ]) {
setTimeout(this.reportFail.bind(this), 1e3, msg, name)
return false
}
//md5(JSON.stringify([name, ...params])), //md5(JSON.stringify([name, ...params])),
this.Connectors[ name ].transmitMessage(msg, params) this.Connectors[ name ].transmitMessage(msg, params)
} }

Loading…
Cancel
Save