25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +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:
Evgeny Khramtsov 2017-07-17 17:56:39 +04:00 committed by GitHub
commit 1bb9e83501

View File

@ -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) ->