Skip to content

Commit

Permalink
fix(iOS): fix crash when reload
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Aug 30, 2024
1 parent b6246fe commit b840dab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ios/JsiUdp.mm
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ @implementation JsiUdp
std::shared_ptr<jsiudp::UdpManager> _manager;

- (void)invalidate {
//NSLog(@"JsiUdp invalidate");
_manager->invalidate();
if (_manager != nullptr)
_manager->invalidate();
}

- (void)setBridge:(RCTBridge *)bridge {
//NSLog(@"JsiUdp setBridge");
_bridge = bridge;
}

Expand Down

0 comments on commit b840dab

Please sign in to comment.