mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix old route record in mnesia's route table haven't been remove when restarting in some cases (#1184)
This commit is contained in:
parent
2cd193f97c
commit
de1a66dfbe
@ -149,7 +149,7 @@ init([]) ->
|
||||
lists:foreach(
|
||||
fun (Pid) -> erlang:monitor(process, Pid) end,
|
||||
mnesia:dirty_select(route,
|
||||
[{{route, '_', '$1', '_'}, [], ['$1']}])),
|
||||
[{#route{pid = '$1', _ = '_'}, [], ['$1']}])),
|
||||
{ok, #state{}}.
|
||||
|
||||
handle_call(_Request, _From, State) ->
|
||||
|
Loading…
Reference in New Issue
Block a user