Merge pull request #11000 from thalesmg/fix-redis-ee-connector-on-stop-v50
fix(bridge_redis): fix `on_stop` `function_clause` error when there's no state
This commit is contained in:
commit
9c057a718d
|
@ -1,6 +1,6 @@
|
||||||
{application, emqx_ee_connector, [
|
{application, emqx_ee_connector, [
|
||||||
{description, "EMQX Enterprise connectors"},
|
{description, "EMQX Enterprise connectors"},
|
||||||
{vsn, "0.1.13"},
|
{vsn, "0.1.14"},
|
||||||
{registered, []},
|
{registered, []},
|
||||||
{applications, [
|
{applications, [
|
||||||
kernel,
|
kernel,
|
||||||
|
|
|
@ -44,7 +44,9 @@ on_start(InstId, #{command_template := CommandTemplate} = Config) ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
on_stop(InstId, #{conn_st := RedisConnSt}) ->
|
on_stop(InstId, #{conn_st := RedisConnSt}) ->
|
||||||
emqx_connector_redis:on_stop(InstId, RedisConnSt).
|
emqx_connector_redis:on_stop(InstId, RedisConnSt);
|
||||||
|
on_stop(InstId, undefined = _State) ->
|
||||||
|
emqx_connector_redis:on_stop(InstId, undefined).
|
||||||
|
|
||||||
on_get_status(InstId, #{conn_st := RedisConnSt}) ->
|
on_get_status(InstId, #{conn_st := RedisConnSt}) ->
|
||||||
emqx_connector_redis:on_get_status(InstId, RedisConnSt).
|
emqx_connector_redis:on_get_status(InstId, RedisConnSt).
|
||||||
|
|
Loading…
Reference in New Issue