Skip to content

Commit

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

Expand Down

0 comments on commit c27d3c7

Please sign in to comment.