Better handle incoming packets sequence

This commit is contained in:
Evgeniy Khramtsov 2013-06-18 22:31:19 +10:00
parent ec01ab3945
commit 94c21f3149
1 changed files with 3 additions and 3 deletions

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) ->