destory -> destroy
This commit is contained in:
parent
f54986dd0d
commit
8391eeb1dd
|
@ -134,7 +134,7 @@ handle_call({destroy_session, ClientId}, _From, State) ->
|
|||
case ets:lookup(?TABLE, ClientId) of
|
||||
[{_, SessPid, MRef}] ->
|
||||
erlang:demonitor(MRef),
|
||||
emqtt_session:destory(SessPid, ClientId),
|
||||
emqtt_session:destroy(SessPid, ClientId),
|
||||
ets:delete(?TABLE, ClientId);
|
||||
[] ->
|
||||
ignore
|
||||
|
|
Loading…
Reference in New Issue