Skip to content

Commit

Permalink
Remove redundant await calls
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaCircuit committed Jun 29, 2020
1 parent 718e560 commit 4fbf980
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,8 @@ export const ReactMediaRecorder = ({
}
}

async function loadStream() {
await getMediaStream();
}

if (!mediaStream.current) {
loadStream();
getMediaStream();
}
}, [audio, screen, video, getMediaStream, mediaRecorderOptions]);

Expand Down

0 comments on commit 4fbf980

Please sign in to comment.