fix: Fix unmount crash
This commit is contained in:
parent
c2de683d67
commit
06bcb53691
@ -409,15 +409,6 @@ export class Camera extends React.PureComponent<CameraProps> {
|
||||
this.lastFrameProcessor = frameProcessor;
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
componentWillUnmount(): void {
|
||||
if (!this.isNativeViewMounted) return;
|
||||
if (this.lastFrameProcessor != null || this.props.frameProcessor != null) {
|
||||
this.unsetFrameProcessor();
|
||||
this.lastFrameProcessor = undefined;
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
|
||||
/** @internal */
|
||||
|
Loading…
Reference in New Issue
Block a user