Skip to content

Commit bd9fe01

Browse files
fix: call on_client_offline for remote session termination (#88)
1 parent 181f5c1 commit bd9fe01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/vmq_server/src/vmq_queue.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,7 @@ handle_session_down(
944944
{stop, normal, NewState};
945945
{0, wait_for_offline, {{terminate, _Reason}, From}} ->
946946
%% Terminate queue process due to remote sub
947+
_ = vmq_plugin:all(on_client_offline, [SId, Reason, UserName]),
947948
gen_fsm:reply(From, ok),
948949
{stop, normal, NewState};
949950
{0, _, _} when DeletedSession#session.cleanup_on_disconnect ->

0 commit comments

Comments
 (0)