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