Quote:
Originally Posted by bl4nk
How do you propose detecting a timeout?
|
Start a timer when you make a request, if it triggers before you get the callback for that group id, redo the request, if you do get a result, cancel the timer. Repeat a max of, say, 5 times (if that, it's generally good at replying on a 2nd request).
Another downside of the API (I reported it to Valve, they said it was intended - despite the current behaviour being completely counter-intuitive) is that it'll treat someone invited to a group (even if they ignore the request) as being a member, and the only way to clear this flag is to join and then leave again.
This makes it quite unsuitable for kicking people that are members of popular groups. The person that discovered this actually had unsavoury members inviting all his regulars to the groups he'd blocked in order to stop them joining the server.
__________________