From d08b1c62bb1820f0d737fd3310b5ec167d67ba79 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 22 Aug 2008 11:35:32 +0000 Subject: [PATCH] * src/ejabberd_router.erl: Fix call to mnesia match_object SVN Revision: 1533 --- ChangeLog | 4 ++++ src/ejabberd_router.erl | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f31a168b4..70cf385e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-08-22 Badlop + + * src/ejabberd_router.erl: Fix call to mnesia match_object + 2008-08-21 Badlop * doc/guide.tex: Fix names of chatroom to room, user to occupant diff --git a/src/ejabberd_router.erl b/src/ejabberd_router.erl index 71c47cd9c..0abb16cc4 100644 --- a/src/ejabberd_router.erl +++ b/src/ejabberd_router.erl @@ -150,9 +150,9 @@ unregister_route(Domain) -> mnesia:transaction(F); _ -> F = fun() -> - case mnesia:match(#route{domain = LDomain, - pid = Pid, - _ = '_'}) of + case mnesia:match_object(#route{domain=LDomain, + pid = Pid, + _ = '_'}) of [R] -> I = R#route.local_hint, mnesia:write(