Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Commit b41d84f

Browse files
author
Karen Mae Bajador
committed
Send will on client's ungraceful disconnect
1 parent 8d2eac4 commit b41d84f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rabbit_web_mqtt_handler.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ terminate(_, _, State = #state{ proc_state = ProcState,
162162
conn_name = ConnName }) ->
163163
maybe_emit_stats(State),
164164
rabbit_log_connection:info("closing Web MQTT connection ~p (~s)~n", [self(), ConnName]),
165+
rabbit_mqtt_processor:send_will(ProcState),
165166
rabbit_mqtt_processor:close_connection(ProcState),
166167
ok.
167168

0 commit comments

Comments
 (0)