Fix #30, add missing semicolons
This commit is contained in:
parent
55ac33732c
commit
2cb72832e0
|
@ -203,7 +203,7 @@ NSString *const RCTTCPErrorDomain = @"RCTTCPErrorDomain";
|
||||||
|
|
||||||
- (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag {
|
- (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag {
|
||||||
if (!_clientDelegate) {
|
if (!_clientDelegate) {
|
||||||
RCTLogError(@"didReadData with nil clientDelegate for %@", [sock userData])
|
RCTLogError(@"didReadData with nil clientDelegate for %@", [sock userData]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ NSString *const RCTTCPErrorDomain = @"RCTTCPErrorDomain";
|
||||||
- (void)socket:(GCDAsyncSocket *)sock didConnectToHost:(NSString *)host port:(uint16_t)port
|
- (void)socket:(GCDAsyncSocket *)sock didConnectToHost:(NSString *)host port:(uint16_t)port
|
||||||
{
|
{
|
||||||
if (!_clientDelegate) {
|
if (!_clientDelegate) {
|
||||||
RCTLogError(@"didConnectToHost with nil clientDelegate for %@", [sock userData])
|
RCTLogError(@"didConnectToHost with nil clientDelegate for %@", [sock userData]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ NSString *const RCTTCPErrorDomain = @"RCTTCPErrorDomain";
|
||||||
- (void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
|
- (void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
|
||||||
{
|
{
|
||||||
if (!_clientDelegate) {
|
if (!_clientDelegate) {
|
||||||
RCTLogError(@"socketDidDisconnect with nil clientDelegate for %@", [sock userData])
|
RCTLogError(@"socketDidDisconnect with nil clientDelegate for %@", [sock userData]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ RCT_EXPORT_METHOD(listen:(nonnull NSNumber*)cId
|
||||||
{
|
{
|
||||||
TcpSocketClient* client = [self findClient:clientID];
|
TcpSocketClient* client = [self findClient:clientID];
|
||||||
if (!client) {
|
if (!client) {
|
||||||
RCTLogError(@"onClose: unrecognized client id %@", clientID)
|
RCTLogError(@"onClose: unrecognized client id %@", clientID);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
Loading…
Reference in New Issue