diff --git a/ChangeLog b/ChangeLog index f82f74e7e..135920880 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-03-12 Alexey Shchepin + + * src/ejabberd_router.erl: Bugfix + 2005-01-14 Alexey Shchepin * src/mod_irc/mod_irc_connection.erl: Added filtering of quit diff --git a/src/ejabberd_router.erl b/src/ejabberd_router.erl index 5713d1a33..ac5583696 100644 --- a/src/ejabberd_router.erl +++ b/src/ejabberd_router.erl @@ -40,6 +40,11 @@ start_link() -> init() -> mnesia:subscribe({table, route, simple}), + lists:foreach( + fun(Pid) -> + erlang:monitor(process, Pid) + end, + mnesia:dirty_select(route, [{{route, '_', '$1', '_'}, [], ['$1']}])), loop(). loop() ->