You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Line [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]; always crash when I create many socket in a short time. Maybe there is a third sdk conflict with these above code.
And I spent half day to fix this problem , and finally I find a way to avoid this bug. The code is:
I fixed the crash on my fork (with extra refactoring and design changes), the real issue was the ability to initialize multiple connections when calling [socket connect] a few times on a disconnected socket (created state marked asynchronously).
#67 Add blocking connect and move handling connection to dedicated NSThread
I have met a crash at
The Line
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]];
always crash when I create many socket in a short time. Maybe there is a third sdk conflict with these above code.And I spent half day to fix this problem , and finally I find a way to avoid this bug. The code is:
I am not sure why this crash happend, neither not sure why my fix can works.
But I think should let you know this issue.
The text was updated successfully, but these errors were encountered: