mirror of
https://github.com/processone/ejabberd
synced 2025-10-04 18:29:20 +02:00
When unregistering XMPP account close its MQTT sessions (#3426)
This commit is contained in:
parent
c6f2d0c3eb
commit
1f88a26f60
3 changed files with 31 additions and 8 deletions
|
@ -24,7 +24,7 @@
|
|||
%% Unsupported backend API
|
||||
-export([init/0]).
|
||||
-export([subscribe/4, unsubscribe/2, find_subscriber/2]).
|
||||
-export([open_session/1, close_session/1, lookup_session/1]).
|
||||
-export([open_session/1, close_session/1, lookup_session/1, get_sessions/2]).
|
||||
|
||||
-include("logger.hrl").
|
||||
-include("ejabberd_sql_pt.hrl").
|
||||
|
@ -125,6 +125,9 @@ close_session(_) ->
|
|||
lookup_session(_) ->
|
||||
erlang:nif_error(unsupported_db).
|
||||
|
||||
get_sessions(_, _) ->
|
||||
erlang:nif_error(unsupported_db).
|
||||
|
||||
subscribe(_, _, _, _) ->
|
||||
erlang:nif_error(unsupported_db).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue