Try to correct jabber slick TestOperationSetPresence.postTestSubscribe().

cusax-fix
Vincent Lucas 15 years ago
parent 0892ee1fb7
commit edf6e6203d

@ -511,9 +511,13 @@ public void postTestSubscribe()
= subEvtCollector.collectedEvents.iterator();
while (events.hasNext())
{
SubscriptionEvent elem = (SubscriptionEvent) events.next();
if(elem.getEventID() == SubscriptionEvent.SUBSCRIPTION_CREATED)
subEvt = elem;
EventObject event = events.next();
if(event instanceof SubscriptionEvent)
{
SubscriptionEvent elem = (SubscriptionEvent) event;
if(elem.getEventID() == SubscriptionEvent.SUBSCRIPTION_CREATED)
subEvt = elem;
}
}
// it happens that when adding contacts which require authorization

Loading…
Cancel
Save