Skip to content

Commit

Permalink
prevent crash fixes TheWidlarzGroup#907
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed Jun 18, 2018
1 parent 0d411a2 commit 343807e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/RCTVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,9 @@ - (void)setProgressUpdateInterval:(float)progressUpdateInterval
- (void)removePlayerLayer
{
[_playerLayer removeFromSuperlayer];
[_playerLayer removeObserver:self forKeyPath:readyForDisplayKeyPath];
@try {
[_playerLayer removeObserver:self forKeyPath:readyForDisplayKeyPath];
} @catch (NSException *e) { }
_playerLayer = nil;
}

Expand Down

0 comments on commit 343807e

Please sign in to comment.