-
-
Notifications
You must be signed in to change notification settings - Fork 91
fix(iOS): Fix crash when localPort or connectedPort is null #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Hi @Rapsssito, could you please explain why this was closed? |
@landabaso, sorry for closing this without any explanation. I have added my review. |
} else { | ||
// Default certificates | ||
[settings setObject:_host forKey:(NSString *)kCFStreamSSLPeerName]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should the default certificates be removed?
if([socket localHost] != nil && [socket connectedHost] != nil && [socket localPort] != nil | ||
&& [socket connectedPort] != nil) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes #197, but what is the reason behind these properties being nil
?
NSString *msg = | ||
[NSString stringWithFormat:@"no client found with id %@", client.id]; | ||
[self sendEventWithName:@"error" body:@{@"id" : client.id, @"error" : msg}]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the correct error message?
It will send an error event when connectedPort or localPort is null