mirror of
https://github.com/status-im/react-native-udp.git
synced 2025-02-04 13:13:30 +00:00
fix double-called callback
This commit is contained in:
parent
7105b5f14d
commit
5e4a82414a
@ -69,7 +69,6 @@ RCT_EXPORT_METHOD(send:(NSString*)cId
|
||||
// TODO: use https://github.com/nicklockwood/Base64 for compatibility with earlier iOS versions
|
||||
NSData *data = [[NSData alloc] initWithBase64EncodedString:base64String options:0];
|
||||
[client send:data remotePort:port remoteAddress:address callback:callback];
|
||||
if (callback) callback(@[]);
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(close:(NSString*)cId
|
||||
|
Loading…
x
Reference in New Issue
Block a user