acmacalister / jetfire

WebSocket (RFC 6455) client library for iOS & OS X
Apache License 2.0
518 stars 83 forks source link

crash in [JFRWebSocket dealloc] #70

Open Evgeny-A opened 7 years ago

Evgeny-A commented 7 years ago

If self.isConnected == YES in dealloc, then the following line crashes in dequeueWrite:

__weak typeof(self) weakSelf = self;

objc[1409]: Cannot form weak reference to instance (0x6000000f6b80) of class JFRWebSocket. It is possible that this object was over-released, or is in the process of deallocation.