微信登陆,bug修改
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
-(void)onSocket:(AsyncSocket *)sock willDisconnectWithError:(NSError *)err{
|
||||
NSLog(@"soket错误断开");
|
||||
NSLog(@"存留数据%@",[sock unreadData]);
|
||||
if (self.communiteDelegate) {
|
||||
if (self.communiteDelegate&&[self.communiteDelegate respondsToSelector:@selector(ifishSocket:willDisconnectWithError:)]) {
|
||||
[self.communiteDelegate ifishSocket:sock willDisconnectWithError:err];
|
||||
|
||||
}
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
|
||||
- (BOOL)onSocketWillConnect:(AsyncSocket *)sock{
|
||||
if (self.communiteDelegate) {
|
||||
if (self.communiteDelegate&&[self.communiteDelegate respondsToSelector:@selector(ifishSocketWillConnect:)]) {
|
||||
[self.communiteDelegate ifishSocketWillConnect:sock];
|
||||
};
|
||||
return YES;
|
||||
|
||||
Reference in New Issue
Block a user