Skip to content

Commit

Permalink
android: don't initialize the module asynchronously
Browse files Browse the repository at this point in the history
There is no need, since initialization always happens before any user
code can run.
  • Loading branch information
saghul committed Aug 26, 2021
1 parent e2c3b1b commit 0a0ed0f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,6 @@ public WebRTCModule(ReactApplicationContext reactContext, Options options) {
mPeerConnectionObservers = new SparseArray<>();
localStreams = new HashMap<>();

ThreadUtils.runOnExecutor(() -> initAsync(options));
}

/**
* Invoked asynchronously to initialize this {@code WebRTCModule} instance.
*/
private void initAsync(Options options) {
ReactApplicationContext reactContext = getReactApplicationContext();

AudioDeviceModule adm = null;
VideoEncoderFactory encoderFactory = null;
VideoDecoderFactory decoderFactory = null;
Expand Down

0 comments on commit 0a0ed0f

Please sign in to comment.