ursachec / CPAProxy

A thin Objective-C wrapper around Tor.
Other
161 stars 49 forks source link

Runloop fix #21

Closed davidchiles closed 9 years ago

davidchiles commented 9 years ago

I was having issues with Expecta so I switched to the built in async testing provided by Xcode.

Also was having issue starting Tor from a background NSOperationQueue and found that using dispatch_after instead of performSelector:withObject:afterDelay: worked. This should have the same effect.

I wonder in the future if it would be better to just try and established a connection to the control port immediately and then retry every 0.5 seconds (or other duration) until the connection is successful instead of trying only once after 0.5 seconds.