Skip to content

Commit f30cd49

Browse files
authored
Fix allowAndroidEmulatorLoopback (#6974)
I was shadowing the name, which lead to infinite recursion.
1 parent b02cf21 commit f30cd49

File tree

1 file changed

+2
-2
lines changed
  • components/viaduct/android/src/main/java/mozilla/appservices/httpconfig

1 file changed

+2
-2
lines changed

components/viaduct/android/src/main/java/mozilla/appservices/httpconfig/HttpConfig.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package mozilla.appservices.httpconfig
66

77
import com.google.protobuf.ByteString
8-
import mozilla.appservices.viaduct.allowAndroidEmulatorLoopback
8+
import mozilla.appservices.viaduct.allowAndroidEmulatorLoopback as rustAllowAndroidEmulatorLoopback
99
import mozilla.appservices.viaduct.initBackend
1010
import mozilla.components.concept.fetch.Client
1111
import mozilla.components.concept.fetch.MutableHeaders
@@ -62,7 +62,7 @@ object RustHttpConfig {
6262
* are sure you are running on an emulator.
6363
*/
6464
fun allowAndroidEmulatorLoopback() {
65-
allowAndroidEmulatorLoopback()
65+
rustAllowAndroidEmulatorLoopback()
6666
}
6767

6868
internal fun convertRequest(request: MsgTypes.Request): Request {

0 commit comments

Comments
 (0)