do not close audiocontext - throws
This commit is contained in:
@@ -222,9 +222,8 @@ export default class AudioRecorder extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cleanUp() {
|
cleanUp() {
|
||||||
this.stream.getTracks().forEach(track => track.stop());
|
|
||||||
this.audioInput.disconnect();
|
this.audioInput.disconnect();
|
||||||
this.audioContext.close();
|
this.stream.getTracks().forEach(track => track.stop());
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
Reference in New Issue
Block a user