mumble-voip / mumblekit

Objective-C-based Mumble client framework for iOS and Mac OS X
http://mumble-voip.github.com/mumblekit/
BSD 3-Clause "New" or "Revised" License
154 stars 70 forks source link

MKConnection: Invalid CryptState or CFSocket. #53

Closed Sweshiman closed 7 years ago

Sweshiman commented 7 years ago

When connecting to a server I sometimes succeed (I would guess about 10% of the times) and sometimes I only get the above message. To me it appears totally random if it works or not.

When failing to connect I never receive the following messages upon connection which always is displayed when successfully connecting:

MKConnection: Got CryptSetup from server. MKConnection: CryptState initialized.

So it appears for some reason the CryptSetup can not always be retrieved

A workaround or fix would be much appreciated

Sweshiman commented 7 years ago

This was caused by my MKConnection object being a declared as a let instead of a var (Swift). Switching to var fixed the issue completely