Skip to content

Commit 1487c65

Browse files
committed
Disable upload-only run worker at app start
1 parent b33080c commit 1487c65

File tree

1 file changed

+3
-2
lines changed
  • composeApp/src/commonMain/kotlin/org/ooni/probe

1 file changed

+3
-2
lines changed

composeApp/src/commonMain/kotlin/org/ooni/probe/App.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import ooniprobe.composeapp.generated.resources.Res
2828
import org.jetbrains.compose.resources.getString
2929
import org.jetbrains.compose.ui.tooling.preview.Preview
3030
import org.ooni.probe.data.models.DeepLink
31-
import org.ooni.probe.data.models.RunSpecification
3231
import org.ooni.probe.di.Dependencies
3332
import org.ooni.probe.shared.PlatformInfo
3433
import org.ooni.probe.ui.navigation.BottomBarViewModel
@@ -116,7 +115,9 @@ fun App(
116115
LaunchedEffect(Unit) {
117116
dependencies.bootstrapTestDescriptors()
118117
dependencies.bootstrapPreferences()
119-
dependencies.startSingleRunInner(RunSpecification.OnlyUploadMissingResults)
118+
// Disabling starting a RunWorker at app start to check if it fixes the
119+
// ForegroundServiceDidNotStartInTimeException some users are getting
120+
// dependencies.startSingleRunInner(RunSpecification.OnlyUploadMissingResults)
120121
}
121122
LaunchedEffect(Unit) {
122123
dependencies.observeAndConfigureAutoUpdate()

0 commit comments

Comments
 (0)