muaz-khan / RecordRTC

RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
https://www.webrtc-experiment.com/RecordRTC/
MIT License
6.49k stars 1.75k forks source link

No check if class instance still exists in handleRecordingDuration #728

Open angekouf opened 3 years ago

angekouf commented 3 years ago

https://github.com/muaz-khan/RecordRTC/blob/3585e673bc646034b28de3c55922b0a84d4636e9/dev/RecordRTC.js#L217-L221

There is no check if self still exists when the timeout ends. That causes an issue in my react app: when the component is unmounted before the recording is stopped, an error occurs saying Cannot read property 'blob' of null.