Fix #30, add missing semicolons

This commit is contained in:
Andy Prock 2017-01-10 14:07:13 -08:00
parent 55ac33732c
commit 2cb72832e0
2 changed files with 4 additions and 4 deletions

View File

@ -203,7 +203,7 @@ NSString *const RCTTCPErrorDomain = @"RCTTCPErrorDomain";
- (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag {
if (!_clientDelegate) {
RCTLogError(@"didReadData with nil clientDelegate for %@", [sock userData])
RCTLogError(@"didReadData with nil clientDelegate for %@", [sock userData]);
return;
}
@ -225,7 +225,7 @@ NSString *const RCTTCPErrorDomain = @"RCTTCPErrorDomain";
- (void)socket:(GCDAsyncSocket *)sock didConnectToHost:(NSString *)host port:(uint16_t)port
{
if (!_clientDelegate) {
RCTLogError(@"didConnectToHost with nil clientDelegate for %@", [sock userData])
RCTLogError(@"didConnectToHost with nil clientDelegate for %@", [sock userData]);
return;
}
@ -244,7 +244,7 @@ NSString *const RCTTCPErrorDomain = @"RCTTCPErrorDomain";
- (void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
{
if (!_clientDelegate) {
RCTLogError(@"socketDidDisconnect with nil clientDelegate for %@", [sock userData])
RCTLogError(@"socketDidDisconnect with nil clientDelegate for %@", [sock userData]);
return;
}

View File

@ -131,7 +131,7 @@ RCT_EXPORT_METHOD(listen:(nonnull NSNumber*)cId
{
TcpSocketClient* client = [self findClient:clientID];
if (!client) {
RCTLogError(@"onClose: unrecognized client id %@", clientID)
RCTLogError(@"onClose: unrecognized client id %@", clientID);
}
if (err) {