Check the connection state here; don't set it.
Merge pull request #195 from tophatter/objective-c-connection-state-fix

Fix connection state set versus check bug