fix(exproto): produce disconnected event if kicked

This commit is contained in:
JianBo He 2022-08-09 11:18:45 +08:00
parent 515fd014d3
commit 7d3ea85ef3
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ handle_call({publish, Topic, Qos, Payload},
end;
handle_call(kick, Channel) ->
{shutdown, kicked, ok, Channel};
{reply, ok, [{event, disconnected}, {close, kicked}], Channel};
handle_call(discard, Channel) ->
{shutdown, discarded, ok, Channel};