Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39c9dec7 authored by Evan Laird's avatar Evan Laird
Browse files

[sat] move some calls to bg thread

These were launching on the application scope, but should just be using
the bgDispatcher instead.

Test: DeviceBasedSatelliteRepositoryTest
Fixes: 381205618
Flag: EXEMPT bugfix
Change-Id: Ibe349fcad98af90ad8728f23f9b6074d207d124d
parent 950a47ab
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -220,7 +220,7 @@ constructor(

        if (satelliteManager != null) {
            // Outer scope launch allows us to delay until MIN_UPTIME
            scope.launch {
            scope.launch(context = bgDispatcher) {
                // First, check that satellite is supported on this device
                satelliteSupport.value = checkSatelliteSupportAfterMinUptime(satelliteManager)
                logBuffer.i(
@@ -229,7 +229,9 @@ constructor(
                )

                // Second, register a listener to let us know if there are changes to support
                scope.launch { listenForChangesToSatelliteSupport(satelliteManager) }
                scope.launch(context = bgDispatcher) {
                    listenForChangesToSatelliteSupport(satelliteManager)
                }
            }
        } else {
            logBuffer.i { "Satellite manager is null" }