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.
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 ofperformSelector: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.