fix(exproto): produce disconnected event if kicked
This commit is contained in:
parent
515fd014d3
commit
7d3ea85ef3
|
@ -381,7 +381,7 @@ handle_call({publish, Topic, Qos, Payload},
|
||||||
end;
|
end;
|
||||||
|
|
||||||
handle_call(kick, Channel) ->
|
handle_call(kick, Channel) ->
|
||||||
{shutdown, kicked, ok, Channel};
|
{reply, ok, [{event, disconnected}, {close, kicked}], Channel};
|
||||||
|
|
||||||
handle_call(discard, Channel) ->
|
handle_call(discard, Channel) ->
|
||||||
{shutdown, discarded, ok, Channel};
|
{shutdown, discarded, ok, Channel};
|
||||||
|
|
Loading…
Reference in New Issue