Skip to content

Commit 4323b99

Browse files
authored
fix: no audio recorder instance warning (#3363)
1 parent 328d9e0 commit 4323b99

File tree

1 file changed

+1
-1
lines changed
  • package/native-package/src/optionalDependencies

1 file changed

+1
-1
lines changed

package/native-package/src/optionalDependencies/Audio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ class _Audio {
137137
startPlayer = async (uri, _, onPlaybackStatusUpdate) => {
138138
try {
139139
const playback = await audioRecorderPlayer.startPlayer(uri);
140-
console.log({ playback });
141140
audioRecorderPlayer.addPlayBackListener((status) => {
142141
onPlaybackStatusUpdate(status);
143142
});
@@ -191,6 +190,7 @@ class _Audio {
191190
};
192191
stopRecording = async () => {
193192
try {
193+
if(!audioRecorderPlayer._isRecording) return;
194194
await audioRecorderPlayer.stopRecorder();
195195
audioRecorderPlayer.removeRecordBackListener();
196196
} catch (error) {

0 commit comments

Comments
 (0)