diff --git a/apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl b/apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl index 315cfbb5c..a76dc904e 100644 --- a/apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl +++ b/apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl @@ -113,7 +113,7 @@ init({ClientId, Username, Password, Channel}) -> password = Password}, _ = run_hooks('client.connect', [conninfo(State0)], undefined), case emqx_access_control:authenticate(clientinfo(State0)) of - {ok, _AuthResult} -> + ok -> ok = emqx_cm:discard_session(ClientId), _ = run_hooks('client.connack', [conninfo(State0), success], undefined), diff --git a/rebar.config b/rebar.config index 0c741e907..3bda59133 100644 --- a/rebar.config +++ b/rebar.config @@ -63,7 +63,7 @@ , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.13.0"}}} , {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.9.6"}}} , {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.2.1"}}} - , {esasl, {git, "https://github.com/emqx/esasl", {branch, "refactor/sasl"}}} + , {esasl, {git, "https://github.com/emqx/esasl", {tag, "0.1.0"}}} ]}. {xref_ignores,