25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Tweak pg2_backport.erl to work with Erlang older than R13A (EJAB-1349)

This commit is contained in:
Badlop 2011-02-22 23:43:38 +01:00
parent 677d8b1a29
commit db0962804d

View File

@ -207,9 +207,12 @@ terminate(_Reason, _S) ->
store(List) ->
_ = [(assure_group(Name)
andalso
[join_group(Name, P) || P <- Members -- group_members(Name)]) ||
store2(Name, Members)) ||
[Name, Members] <- List],
ok.
store2(Name, Members) ->
[join_group(Name, P) || P <- Members -- group_members(Name)],
true.
assure_group(Name) ->
Key = {group, Name},