25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Better handle incoming packets sequence

This commit is contained in:
Evgeniy Khramtsov 2013-06-18 22:31:19 +10:00
parent ec01ab3945
commit 94c21f3149

View File

@ -761,15 +761,15 @@ roster_remove_slave(Config) ->
%% Remove the peer from roster. %% Remove the peer from roster.
Item = #roster_item{jid = LPeer, subscription = remove}, Item = #roster_item{jid = LPeer, subscription = remove},
I = send(Config, #iq{type = set, sub_els = [#roster{items = [Item]}]}), I = send(Config, #iq{type = set, sub_els = [#roster{items = [Item]}]}),
{Push, _} = ?recv2( {Push, _, _} = ?recv3(
#iq{type = set, #iq{type = set,
sub_els = sub_els =
[#roster{items = [#roster_item{ [#roster{items = [#roster_item{
jid = LPeer, jid = LPeer,
subscription = remove}]}]}, subscription = remove}]}]},
#iq{type = result, id = I, sub_els = []}), #iq{type = result, id = I, sub_els = []},
#presence{type = unavailable, from = Peer}),
send(Config, make_iq_result(Push)), send(Config, make_iq_result(Push)),
#presence{type = unavailable, from = Peer} = recv(),
disconnect(Config). disconnect(Config).
proxy65_master(Config) -> proxy65_master(Config) ->