Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void) handleRequest
- {
- // Wait up to five seconds for the network to be worth trying.
- for (int i = 0; i < 5; i++)
- {
- if (NetworkWorthTrying()) return;
- [NSThread sleepForTimeInterval:1.0];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement