Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
Merge commit '4ccb970ee78d34230ee8241878332125b83ed130' into develop
Browse files Browse the repository at this point in the history
+ adjust it a bit. close #109.

# Via Stepan Generalov
* commit '4ccb970ee78d34230ee8241878332125b83ed130':
  SocketIO: don't use NSURLConnection delegate property in -dealloc - not available without BlocksKit
  Ensure to cleanup properly in -disconnect & -dealloc - fixes crashes
  • Loading branch information
pkyeck committed Jul 16, 2013
2 parents 6b48221 + 4ccb970 commit d90e34a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SocketIO.m
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ - (void) disconnect
}
else if (_isConnecting) {
[_handshake cancel];
[self onDisconnect: nil];
}
}

Expand Down Expand Up @@ -786,10 +787,14 @@ - (void) connection:(NSURLConnection *)connection

- (void) dealloc
{
[_handshake cancel];
_handshake = nil;

_host = nil;
_sid = nil;
_endpoint = nil;

_transport.delegate = nil;
_transport = nil;

[_timeout invalidate];
Expand Down

0 comments on commit d90e34a

Please sign in to comment.