diff --git a/mod_mam/src/mod_mam.erl b/mod_mam/src/mod_mam.erl index 1594039..b390731 100644 --- a/mod_mam/src/mod_mam.erl +++ b/mod_mam/src/mod_mam.erl @@ -1245,5 +1245,5 @@ remove_user(LUser, LServer, mnesia) -> ok end end, - {atomic, ok} = mnesia:transaction(Remove), + {atomic, ok} = mnesia:sync_transaction(Remove), manage_mnesia_fragments(true).