MegaBits / SIOSocket

Realtime iOS application framework (client) http://socket.io
MIT License
494 stars 80 forks source link

Issue when closing the socket #56

Open osgafarov opened 9 years ago

osgafarov commented 9 years ago

Hi,

I am testing the library on iPhone 5C (iOS 7). I have 2 screens in the app. On the second screen I open the connection, and when navigating back I close the connection. The problem is if I do it very fast (navigating back and forward between the screens), then I receive crash in the following line (the method close):

[self.javascriptWebView loadRequest: [NSURLRequest requestWithURL: [NSURL URLWithString: @"about:blank"]]]; //crashes here

[self.javascriptWebView reload];

self.javascriptWebView = nil;

I am not able to reproduce it on newer devices (iPhone 6 and 6+)

Thanks, Osman