25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +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.
Item = #roster_item{jid = LPeer, subscription = remove},
I = send(Config, #iq{type = set, sub_els = [#roster{items = [Item]}]}),
{Push, _} = ?recv2(
{Push, _, _} = ?recv3(
#iq{type = set,
sub_els =
[#roster{items = [#roster_item{
jid = LPeer,
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)),
#presence{type = unavailable, from = Peer} = recv(),
disconnect(Config).
proxy65_master(Config) ->