Rerequesting status if we haven't received one.

cusax-fix
Damian Minkov 19 years ago
parent 87deb0e77c
commit 81a622a481

@ -260,6 +260,15 @@ public void subtestStateTransition( IcqStatusEnum newStatus)
//test event notification.
statusEventCollector.waitForPresEvent(10000);
statusEventCollector.waitForStatMsgEvent(10000);
// sometimes we don't get response from the server for the
// changed status. we will query it once again.
// and wait for the response
if(statusEventCollector.collectedPresEvents.size() == 0)
{
operationSetPresence.queryContactStatus(fixture.icqAccountID.getUserID());
statusEventCollector.waitForPresEvent(10000);
}
operationSetPresence.removeProviderPresenceStatusListener(
statusEventCollector);

Loading…
Cancel
Save