From 0a0ed0f42be740ea344d7439fa447afcfd5c223a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= <saghul@jitsi.org>
Date: Thu, 26 Aug 2021 13:46:13 +0200
Subject: [PATCH] android: don't initialize the module asynchronously

There is no need, since initialization always happens before any user
code can run.
---
 .../main/java/com/oney/WebRTCModule/WebRTCModule.java    | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java b/android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java
index b1a7e5e88..754038299 100644
--- a/android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java
+++ b/android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java
@@ -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;